varLib_test: close TTFont otherwise shutil.rmtree fails on Win
https://ci.appveyor.com/project/fonttools/fonttools/builds/32948704/job/hc91qjisv4nv603m#L400
This commit is contained in:
parent
72f9e7794a
commit
a6612aa6b5
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user