Skip to content

Commit

Permalink
Fix window test by closing the font implicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Jun 17, 2020
1 parent da45253 commit 24c387e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Lib/defcon/test/objects/test_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,13 @@ def test_save_ufo3z_as_ufo2(self):
with tempfile.TemporaryDirectory() as root:
path_ufo3 = os.path.join(root, "three.ufo")
font.save(path_ufo3, formatVersion=3, structure="zip")
font.close()

path_ufo2 = os.path.join(root, "two.ufo")
font_ufo2 = Font(path_ufo3)
font_ufo2.save(path_ufo2, formatVersion=2)

with Font(path_ufo3) as font_ufo2:
font_ufo2.save(path_ufo2, formatVersion=2)


def test_testForExternalChanges(self):
for ufo in (u"TestExternalEditing.ufo", u"TestExternalEditing.ufoz"):
Expand Down

0 comments on commit 24c387e

Please sign in to comment.