python_prctl is only for linux, so

- make requirements platform dependent
 - skip test_process_name in TestProcess
This commit is contained in:
Dmitri Bogomolov 2020-02-17 23:09:46 +02:00
parent 2ac7b572e8
commit 568c0a606f
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
coverage
python_prctl
python_prctl;platform_system=="Linux"
psutil
pycrypto
six

View File

@ -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')