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:
Cosimo Lupo 2020-05-18 13:16:05 +01:00
parent 72f9e7794a
commit a6612aa6b5
No known key found for this signature in database
GPG Key ID: 179A8F0895A02F4F

View File

@ -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)