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 bfad6cf69d
commit 2eb1293c4b
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -3,6 +3,7 @@ Common reusable code for tests and tests for pybitmessage process.
"""
import os
import sys
import signal
import subprocess # nosec
import sys
@ -191,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')