From cbcd8267d144e821999fe524dd5e273d47081972 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 26 Jun 2018 03:19:59 +0100 Subject: [PATCH] tests: must decode() zlib result for 3.x. --- tests/importer_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/importer_test.py b/tests/importer_test.py index b3dc49b3..5c970438 100644 --- a/tests/importer_test.py +++ b/tests/importer_test.py @@ -118,7 +118,8 @@ class LoadModulePackageTest(ImporterMixin, testlib.TestCase): self.set_get_module_response(self.response) mod = self.importer.load_module(self.modname) source = mod.__loader__.get_source(self.modname) - self.assertEquals(source, zlib.decompress(self.data)) + self.assertEquals(source, + mitogen.core.to_text(zlib.decompress(self.data))) def test_module_loader_set(self): self.set_get_module_response(self.response)