designspace_test: compare normalized paths

https://github.com/fonttools/fonttools/issues/1259#issuecomment-450910787
This commit is contained in:
Cosimo Lupo 2019-01-02 16:33:03 +00:00
parent e640806657
commit b3e8f76b64
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -792,7 +792,7 @@ def test_getSourcePath(tmpdir):
s1 = SourceDescriptor()
s1.path = str(tmpdir / "foo"/ "masters" / "Source1.ufo")
assert doc.getSourcePath(s1) == s1.path
assert doc.getSourcePath(s1) == os.path.normpath(s1.path)
s1.path = None