Skip to content

Commit 22a6dd3

Browse files
committed
Perform safer check for integer dtypes
1 parent c130c41 commit 22a6dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_datasets/test_dataset_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ def test_delete_unknown_dataset(mock_delete, test_files_directory, test_api_key)
18281828

18291829

18301830
def _assert_datasets_have_id_and_valid_status(datasets: pd.DataFrame):
1831-
assert int == datasets["did"].dtype
1831+
assert pd.api.types.is_integer_dtype(datasets["did"])
18321832
assert {"in_preparation", "active", "deactivated"} >= set(datasets["status"])
18331833

18341834

0 commit comments

Comments
 (0)