tests: Py3.x fix.

This commit is contained in:
David Wilson 2019-06-02 19:12:43 +01:00
parent ed8acb5153
commit 50cdf63c27
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import sys
import unittest2
import mitogen.master
from mitogen.core import b
import testlib
from testlib import MODS_DIR
@ -122,7 +123,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':
actual_src += '\n'
actual_src += b('\n')
self.assertEquals(src, actual_src)
self.assertFalse(is_pkg)