From 568c0a606fdf0f4f4aa9070992d778d8b150be5d Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Mon, 17 Feb 2020 23:09:46 +0200 Subject: [PATCH] python_prctl is only for linux, so - make requirements platform dependent - skip test_process_name in TestProcess --- requirements.txt | 2 +- src/tests/test_process.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b12641c2..388d825b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ coverage -python_prctl +python_prctl;platform_system=="Linux" psutil pycrypto six diff --git a/src/tests/test_process.py b/src/tests/test_process.py index 7f7691d1..bcec289f 100644 --- a/src/tests/test_process.py +++ b/src/tests/test_process.py @@ -192,6 +192,7 @@ class TestProcessShutdown(TestProcessProto): class TestProcess(TestProcessProto): """A test case for pybitmessage process""" + @unittest.skipIf(sys.platform[:5] != 'linux', 'probably needs prctl') def test_process_name(self): """Check PyBitmessage process name""" self.assertEqual(self.process.name(), 'PyBitmessage')