From 669f5c6c8508ec8678d4a2883a10f8eb213bcf7e Mon Sep 17 00:00:00 2001 From: cis-kuldeep Date: Mon, 12 Jul 2021 17:31:13 +0530 Subject: [PATCH] fixes in test_process --- src/tests/test_process.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test_process.py b/src/tests/test_process.py index 7a7549ef..efe4adcb 100644 --- a/src/tests/test_process.py +++ b/src/tests/test_process.py @@ -153,7 +153,7 @@ class TestProcessProto(unittest.TestCase): missing_threads = [] for thread_name in thread_names: if thread_name not in self._threads_names: - extra_threads.append(thread_name) + extra_threads.append(thread_name.decode('utf-8')) for thread_name in self._threads_names: if thread_name not in thread_names: missing_threads.append(thread_name) @@ -191,7 +191,7 @@ class TestProcess(TestProcessProto): """A test case for pybitmessage process""" def test_process_name(self): """Check PyBitmessage process name""" - self.assertEqual(self.process.name(), 'PyBitmessage') + self.assertEqual(self.process.name(), 'pybitmessage') @unittest.skipIf(psutil.version_info < (4, 0), 'psutil is too old') def test_home(self):