Skip to content

Commit ed53a1f

Browse files
committed
fix tests
1 parent 1eda40d commit ed53a1f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/test_data/test_utils.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,13 @@
1717

1818
@pytest.mark.parametrize('openmlid', [2, 40984])
1919
@pytest.mark.parametrize('as_frame', [True, False])
20-
def test_data_validation_for_classification(openmlid, as_frame, n_samples):
20+
def test_reduce_dataset_if_too_large(openmlid, as_frame, n_samples):
2121
X, _ = fetch_openml(data_id=openmlid, return_X_y=True, as_frame=as_frame)
2222
X = subsampler(data=X, x=range(n_samples))
2323

24-
X_converted, precision = reduce_dataset_size_if_too_large(X.copy(), memory_allocation=0)
24+
X_converted = reduce_dataset_size_if_too_large(X.copy(), memory_allocation=0)
2525
np.allclose(X, X_converted) if not as_frame else assert_frame_equal(X, X_converted, check_dtype=False)
2626
assert megabytes(X_converted) < megabytes(X)
27-
if as_frame:
28-
assert isinstance(precision, dict)
29-
assert isinstance(list(precision.values())[0], type)
30-
else:
31-
assert isinstance(precision, type)
3227

3328

3429
def test_validate_dataset_compression_arg():

0 commit comments

Comments
 (0)