Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
conform to pep8
  • Loading branch information
Qiang Luo
Qiang Luo committed Dec 12, 2014
commit 0e0c1896667f057521de2b8db388c7f233bc64eb
7 changes: 4 additions & 3 deletions lib/matplotlib/tests/test_font_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ def test_font_priority():
FontProperties(family=["sans-serif"]))
assert_equal(os.path.basename(font), 'cmmi10.ttf')


def test_font_ttc():
# the font should be available(ttf-wqy-zenhei in ubuntu)
# the font should be available(ttf-wqy-zenhei in ubuntu)
font = findfont(
FontProperties(family=["WenQuanYi Zen Hei"]))
assert_equal(os.path.basename(font), 'wqy-zenhei.ttc')

if __name__=='__main__':
if __name__ == '__main__':
import nose
nose.runmodule(argv=['-s','--with-doctest'], exit=False)
nose.runmodule(argv=['-s', '--with-doctest'], exit=False)