[subset_test] invert arguments order in difflib.unified_diff; remove unused variable

This commit is contained in:
Cosimo Lupo 2017-01-17 17:39:41 +00:00
parent 89b688cecf
commit 084ee0750a
No known key found for this signature in database
GPG Key ID: B61AAAD0B53A6419

View File

@ -59,7 +59,7 @@ class SubsetTest(unittest.TestCase):
expected = self.read_ttx(expected_ttx) expected = self.read_ttx(expected_ttx)
if actual != expected: if actual != expected:
for line in difflib.unified_diff( for line in difflib.unified_diff(
expected, actual, fromfile=path, tofile=expected_ttx): expected, actual, fromfile=expected_ttx, tofile=path):
sys.stdout.write(line) sys.stdout.write(line)
self.fail("TTX output is different from expected") self.fail("TTX output is different from expected")
@ -152,7 +152,6 @@ class SubsetTest(unittest.TestCase):
def test_timing_publishes_parts(self): def test_timing_publishes_parts(self):
_, fontpath = self.compile_font(self.getpath("TestTTF-Regular.ttx"), ".ttf") _, fontpath = self.compile_font(self.getpath("TestTTF-Regular.ttx"), ".ttf")
subsetpath = self.temp_path(".ttf")
options = subset.Options() options = subset.Options()
options.timing = True options.timing = True