Merge pull request #1820 from fonttools/fix-test_include_relative_to_cwd-on-win

[feaLib lexer tests] Compare realpath against realpath
This commit is contained in:
Nikolaus Waxweiler 2020-02-04 13:13:16 +00:00 committed by GitHub
commit 5f753c3641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,7 +223,7 @@ class IncludingLexerTest(unittest.TestCase):
# an in-memory stream, so it will use the current working
# directory to resolve relative include statements
lexer = IncludingLexer(UnicodeIO("include(included.fea);"))
files = set(loc[0] for _, _, loc in lexer)
files = set(os.path.realpath(loc[0]) for _, _, loc in lexer)
expected = os.path.realpath(included.name)
self.assertIn(expected, files)
finally: