tests: Py3.x fix.

pull/595/head
David Wilson 6 years ago
parent a1f2ec222d
commit f1287e6e9a

@ -122,7 +122,7 @@ class SysModulesMethodTest(testlib.TestCase):
# linecache adds a line ending to the final line if one is missing. # linecache adds a line ending to the final line if one is missing.
actual_src = open(path, 'rb').read() actual_src = open(path, 'rb').read()
if actual_src[-1] != b('\n'): if actual_src[-1:] != b('\n'):
actual_src += b('\n') actual_src += b('\n')
self.assertEquals(src, actual_src) self.assertEquals(src, actual_src)

Loading…
Cancel
Save