From a6612aa6b5ab2cf998522b331dd478e905ceeeff Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Mon, 18 May 2020 13:16:05 +0100 Subject: [PATCH] varLib_test: close TTFont otherwise shutil.rmtree fails on Win https://ci.appveyor.com/project/fonttools/fonttools/builds/32948704/job/hc91qjisv4nv603m#L400 --- Tests/varLib/varLib_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/varLib/varLib_test.py b/Tests/varLib/varLib_test.py index 5d36d6871..d27fe163e 100644 --- a/Tests/varLib/varLib_test.py +++ b/Tests/varLib/varLib_test.py @@ -22,6 +22,7 @@ def reload_font(font): """(De)serialize to get final binary layout.""" buf = BytesIO() font.save(buf) + font.close() buf.seek(0) return TTFont(buf)