[designspaceLib/test] Fix Windows bot failure

This commit is contained in:
Behdad Esfahbod 2023-05-30 13:51:43 -06:00
parent a99a75e8a6
commit 0184c91ce8

View File

@ -701,6 +701,13 @@ def test_axisMappingsRoundtrip(tmpdir):
assert doc.axisMappings assert doc.axisMappings
assert len(doc.axisMappings) == 3 assert len(doc.axisMappings) == 3
assert doc.axisMappings[0].inputLocation == {"Justify": 0.0} assert doc.axisMappings[0].inputLocation == {"Justify": 0.0}
# This is a bit of a hack, but it's the only way to make sure
# that the save works on Windows if the tempdir and the data
# dir are on different drives.
for descriptor in doc.sources + doc.instances:
descriptor.path = None
doc.write(testDocPath2) doc.write(testDocPath2)
# verify these results # verify these results
doc2 = DesignSpaceDocument() doc2 = DesignSpaceDocument()