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

Skip to content

Commit 9eb6533

Browse files
committed
Add more missing tests
1 parent 96e744a commit 9eb6533

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,6 +1447,7 @@ def tk_window_focus():
14471447
'matplotlib.tests.test_contour',
14481448
'matplotlib.tests.test_dates',
14491449
'matplotlib.tests.test_delaunay',
1450+
'matplotlib.tests.test_dviread',
14501451
'matplotlib.tests.test_figure',
14511452
'matplotlib.tests.test_font_manager',
14521453
'matplotlib.tests.test_gridspec',
@@ -1476,6 +1477,7 @@ def tk_window_focus():
14761477
'matplotlib.tests.test_tightlayout',
14771478
'matplotlib.tests.test_transforms',
14781479
'matplotlib.tests.test_triangulation',
1480+
'matplotlib.tests.test_type1font',
14791481
'matplotlib.tests.test_units',
14801482
'matplotlib.tests.test_widgets',
14811483
'matplotlib.tests.test_cycles',

lib/matplotlib/tests/test_dviread.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ def test_dviread():
6565
with open(os.path.join(dir, 'test.json')) as f:
6666
correct = json.load(f)
6767
with dr.Dvi(os.path.join(dir, 'test.dvi'), None) as dvi:
68-
data = [{'text': [[t.x, t.y, six.unichr(t.glyph),
69-
six.text_type(t.font.texname), round(t.font.size, 2)]
68+
data = [{'text': [[t.x, t.y,
69+
six.unichr(t.glyph),
70+
six.text_type(t.font.texname),
71+
round(t.font.size, 2)]
7072
for t in page.text],
7173
'boxes': [[b.x, b.y, b.height, b.width] for b in page.boxes]}
7274
for page in dvi]

0 commit comments

Comments
 (0)