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:
commit
5f753c3641
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user