diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2024-02-21 08:23:55 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2024-02-21 08:23:55 +0100 |
commit | 7f972518eb4e40bc7f8bc670bb45015d371a9166 (patch) | |
tree | fe6aedabb9c13b6adfd0a405c7ce39d96b163d18 /sci-libs/datasets | |
parent | sci-libs/huggingface_hub: add 0.17.3, drop 0.16.4-r1 (diff) | |
download | gentoo-7f972518eb4e40bc7f8bc670bb45015d371a9166.tar.gz gentoo-7f972518eb4e40bc7f8bc670bb45015d371a9166.tar.bz2 gentoo-7f972518eb4e40bc7f8bc670bb45015d371a9166.zip |
sci-libs/datasets: missing a patch
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs/datasets')
-rw-r--r-- | sci-libs/datasets/files/datasets-2.15.0-tests.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sci-libs/datasets/files/datasets-2.15.0-tests.patch b/sci-libs/datasets/files/datasets-2.15.0-tests.patch new file mode 100644 index 000000000000..64d8dcfdc8d8 --- /dev/null +++ b/sci-libs/datasets/files/datasets-2.15.0-tests.patch @@ -0,0 +1,46 @@ +--- a/tests/test_arrow_dataset.py 2024-02-20 21:53:24.248470991 +0100 ++++ b/tests/test_arrow_dataset.py 2024-02-20 21:53:29.441804737 +0100 +@@ -3978,7 +3978,6 @@ + [ + "relative/path", + "/absolute/path", +- "s3://bucket/relative/path", + "hdfs://relative/path", + "hdfs:///absolute/path", + ], +--- a/tests/test_hf_gcp.py 2024-02-20 21:55:18.821852434 +0100 ++++ b/tests/test_hf_gcp.py 2024-02-20 21:55:46.525186394 +0100 +@@ -22,7 +22,6 @@ + {"dataset": "wikipedia", "config_name": "20220301.it"}, + {"dataset": "wikipedia", "config_name": "20220301.simple"}, + {"dataset": "snli", "config_name": "plain_text"}, +- {"dataset": "eli5", "config_name": "LFQA_reddit"}, + {"dataset": "wiki40b", "config_name": "en"}, + {"dataset": "wiki_dpr", "config_name": "psgs_w100.nq.compressed"}, + {"dataset": "wiki_dpr", "config_name": "psgs_w100.nq.no_index"}, +--- a/tests/test_inspect.py 2024-02-20 22:01:35.148488467 +0100 ++++ b/tests/test_inspect.py 2024-02-20 22:02:14.458561571 +0100 +@@ -15,7 +15,7 @@ + pytestmark = pytest.mark.integration + + +-@pytest.mark.parametrize("path", ["paws", "csv"]) ++@pytest.mark.parametrize("path", ["csv"]) + def test_inspect_dataset(path, tmp_path): + inspect_dataset(path, tmp_path) + script_name = path + ".py" +--- a/tests/test_load.py 2024-02-20 22:12:13.699209107 +0100 ++++ b/tests/test_load.py 2024-02-20 22:13:10.862626708 +0100 +@@ -1235,12 +1235,6 @@ + + + @pytest.mark.integration +-def test_load_streaming_private_dataset_with_zipped_data(hf_token, hf_private_dataset_repo_zipped_txt_data): +- ds = load_dataset(hf_private_dataset_repo_zipped_txt_data, streaming=True, token=hf_token) +- assert next(iter(ds)) is not None +- +- +-@pytest.mark.integration + def test_load_dataset_config_kwargs_passed_as_arguments(): + ds_default = load_dataset(SAMPLE_DATASET_IDENTIFIER4) + ds_custom = load_dataset(SAMPLE_DATASET_IDENTIFIER4, drop_metadata=True) |