Use skipif decorator to omit Tor integration test setup on Windows

This commit is contained in:
Sajith Sasidharan 2020-07-19 09:19:19 -04:00
parent 7d93ae9213
commit 9e82df4fa7

View File

@ -358,11 +358,10 @@ def bob(reactor, temp_dir, introducer_furl, flog_gatherer, storage_nodes, reques
@pytest.fixture(scope='session')
@pytest.mark.skipif(sys.platform.startswith('win'),
'Tor tests are unstable on Windows')
def chutney(reactor, temp_dir):
if sys.platform.startswith('win'):
pytest.skip('Tor tests are unstable on Windows')
chutney_dir = join(temp_dir, 'chutney')
mkdir(chutney_dir)
@ -392,11 +391,10 @@ def chutney(reactor, temp_dir):
@pytest.fixture(scope='session')
@pytest.mark.skipif(sys.platform.startswith('win'),
reason='Tor tests are unstable on Windows')
def tor_network(reactor, temp_dir, chutney, request):
if sys.platform.startswith('win'):
pytest.skip('Tor tests are unstable on Windows')
# this is the actual "chutney" script at the root of a chutney checkout
chutney_dir = chutney
chut = join(chutney_dir, 'chutney')