Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adbeaaf

Browse files
committed
Use assert_equal
1 parent 4074791 commit adbeaaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import (absolute_import, division, print_function,
22
unicode_literals)
33

4+
from nose.tools import assert_equal
45
import six
56

67
import os
@@ -15,4 +16,4 @@ def test_font_priority():
1516
['cmmi10', 'Bitstream Vera Sans']}):
1617
font = findfont(
1718
FontProperties(family=["sans-serif"]))
18-
assert os.path.basename(font) == 'cmmi10.ttf'
19+
assert_equal(os.path.basename(font), 'cmmi10.ttf')

0 commit comments

Comments
 (0)