python_prctl is only for linux, so
- make requirements platform dependent - skip test_process_name in TestProcess
This commit is contained in:
parent
2ac7b572e8
commit
568c0a606f
|
@ -1,5 +1,5 @@
|
||||||
coverage
|
coverage
|
||||||
python_prctl
|
python_prctl;platform_system=="Linux"
|
||||||
psutil
|
psutil
|
||||||
pycrypto
|
pycrypto
|
||||||
six
|
six
|
||||||
|
|
|
@ -192,6 +192,7 @@ class TestProcessShutdown(TestProcessProto):
|
||||||
|
|
||||||
class TestProcess(TestProcessProto):
|
class TestProcess(TestProcessProto):
|
||||||
"""A test case for pybitmessage process"""
|
"""A test case for pybitmessage process"""
|
||||||
|
@unittest.skipIf(sys.platform[:5] != 'linux', 'probably needs prctl')
|
||||||
def test_process_name(self):
|
def test_process_name(self):
|
||||||
"""Check PyBitmessage process name"""
|
"""Check PyBitmessage process name"""
|
||||||
self.assertEqual(self.process.name(), 'PyBitmessage')
|
self.assertEqual(self.process.name(), 'PyBitmessage')
|
||||||
|
|
Reference in New Issue
Block a user