diff options
Diffstat (limited to 'Tests/varLib/varLib_test.py')
-rw-r--r-- | Tests/varLib/varLib_test.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Tests/varLib/varLib_test.py b/Tests/varLib/varLib_test.py index b8e7183b..484a2e22 100644 --- a/Tests/varLib/varLib_test.py +++ b/Tests/varLib/varLib_test.py @@ -84,12 +84,11 @@ class BuildTest(unittest.TestCase): lines = [] with open(path, "r", encoding="utf-8") as ttx: for line in ttx.readlines(): - # Elide ttFont attributes because ttLibVersion may change, - # and use os-native line separators so we can run difflib. + # Elide ttFont attributes because ttLibVersion may change. if line.startswith("<ttFont "): - lines.append("<ttFont>" + os.linesep) + lines.append("<ttFont>\n") else: - lines.append(line.rstrip() + os.linesep) + lines.append(line.rstrip() + "\n") return lines def expect_ttx(self, font, expected_ttx, tables): |