Skip to content

Commit 3d08c2d

Browse files
mfeurerPGijsbers
authored andcommitted
Mark unit test as flaky (#770)
* add flaky decorator and install flaky * remove reruns flag
1 parent 4a6c980 commit 3d08c2d

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
'pytest-xdist',
4949
'pytest-timeout',
5050
'nbformat',
51-
'oslo.concurrency'
51+
'oslo.concurrency',
52+
'flaky',
5253
],
5354
'examples': [
5455
'matplotlib',

tests/test_runs/test_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_to_from_filesystem_vanilla(self):
134134
TestBase.logger.info("collected from {}: {}".format(__file__.split('/')[-1],
135135
run_prime.run_id))
136136

137-
@pytest.mark.flaky(reruns=3)
137+
@pytest.mark.flaky()
138138
def test_to_from_filesystem_search(self):
139139

140140
model = Pipeline([

tests/test_runs/test_run_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import unittest.mock
88

99
import numpy as np
10+
import pytest
1011

1112
import openml
1213
import openml.exceptions
@@ -826,6 +827,7 @@ def test_initialize_model_from_run(self):
826827
self.assertEqual(flowS.components['VarianceThreshold'].
827828
parameters['threshold'], '0.05')
828829

830+
@pytest.mark.flaky()
829831
def test_get_run_trace(self):
830832
# get_run_trace is already tested implicitly in test_run_and_publish
831833
# this test is a bit additional.

0 commit comments

Comments
 (0)