tests: Py3.x fix.

This commit is contained in:
David Wilson 2019-06-02 19:12:43 +01:00
parent e94200aeb9
commit 90105e2031
1 changed files with 1 additions and 1 deletions

View File

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