python_prctl is only for linux, so
- make requirements platform dependent - skip test_process_name in TestProcess
This commit is contained in:
parent
bfad6cf69d
commit
2eb1293c4b
|
@ -1,5 +1,5 @@
|
|||
coverage
|
||||
python_prctl
|
||||
python_prctl;platform_system=="Linux"
|
||||
psutil
|
||||
pycrypto
|
||||
six
|
||||
|
|
|
@ -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')
|
||||
|
|
Reference in New Issue
Block a user