Skip to content
Snippets Groups Projects
Commit 08d328f0 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

test reorder

parent d90a38b6
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,6 @@ install: ...@@ -9,6 +9,6 @@ install:
- pip install -r requirements.txt - pip install -r requirements.txt
- python setup.py install - python setup.py install
script: script:
- nosetests --with-coverage
- bash tests/test_posix/test_hang_until_sig.sh - bash tests/test_posix/test_hang_until_sig.sh
- nosetests --with-coverage
...@@ -6,3 +6,6 @@ max-line-length=120 ...@@ -6,3 +6,6 @@ max-line-length=120
[bdist_wheel] [bdist_wheel]
universal=1 universal=1
[nosetests]
verbosity=3
...@@ -11,23 +11,6 @@ from mock import patch, Mock ...@@ -11,23 +11,6 @@ from mock import patch, Mock
import os import os
class TestHUS(unittest.TestCase):
@patch('signal.signal')
def test_signal(self, signal):
class Delayer(threading.Thread):
def run(self):
time.sleep(2)
for call in signal.call_args_list:
call.handler(call.signalnum, None)
from satella.posix import hang_until_sig
Delayer().start()
hang_until_sig()
class TestPidlock(unittest.TestCase): class TestPidlock(unittest.TestCase):
def test_pidlock(self): def test_pidlock(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment