Skip to content

Commit 50cdf63

Browse files
committed
tests: Py3.x fix.
1 parent ed8acb5 commit 50cdf63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/module_finder_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import unittest2
66

77
import mitogen.master
8+
from mitogen.core import b
89

910
import testlib
1011
from testlib import MODS_DIR
@@ -122,7 +123,7 @@ def test_main(self):
122123
# linecache adds a line ending to the final line if one is missing.
123124
actual_src = open(path, 'rb').read()
124125
if actual_src[-1] != '\n':
125-
actual_src += '\n'
126+
actual_src += b('\n')
126127

127128
self.assertEquals(src, actual_src)
128129
self.assertFalse(is_pkg)

0 commit comments

Comments
 (0)