From 50cdf63c27177c75b815af3e01337126f5bf801f Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 2 Jun 2019 19:12:43 +0100 Subject: [PATCH] tests: Py3.x fix. --- tests/module_finder_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/module_finder_test.py b/tests/module_finder_test.py index d35fb382..3bc4088f 100644 --- a/tests/module_finder_test.py +++ b/tests/module_finder_test.py @@ -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)