Skip to content

Commit dc5ada0

Browse files
committed
Add parallel testing to all tests in test_flows
1 parent b01d6f1 commit dc5ada0

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_datasets/test_dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class OpenMLDatasetTest(unittest.TestCase):
1212
# Splitting not helpful, these test's don't rely on the server and take less
13-
# than 5 seconds.
13+
# than 5 seconds + rebuilding the test would potentially be costly
1414

1515
def setUp(self):
1616
# Load dataset id 1

tests/test_flows/test_flow_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99

1010
class TestFlowFunctions(unittest.TestCase):
11+
_multiprocess_can_split_ = True
12+
1113
def _check_flow(self, flow):
1214
self.assertEqual(type(flow), dict)
1315
self.assertEqual(len(flow), 6)

tests/test_flows/test_sklearn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def fit(self, X, y):
5050

5151

5252
class TestSklearn(unittest.TestCase):
53+
# Splitting not helpful, these test's don't rely on the server and take less
54+
# than 1 seconds
5355

5456
def setUp(self):
5557
iris = sklearn.datasets.load_iris()

0 commit comments

Comments
 (0)