commit:     48af9c1392f58d79a196a26287bc4bb362317f18
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon May 15 21:30:47 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon May 15 21:31:44 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48af9c13

sci-libs/datasets: ignore some tests not working on sandbox

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../datasets/files/datasets-2.11.0-tests.patch     | 82 ++++++++++++++++++++++
 1 file changed, 82 insertions(+)

diff --git a/sci-libs/datasets/files/datasets-2.11.0-tests.patch 
b/sci-libs/datasets/files/datasets-2.11.0-tests.patch
index 0bbf200acbd0..0babe8b23d58 100644
--- a/sci-libs/datasets/files/datasets-2.11.0-tests.patch
+++ b/sci-libs/datasets/files/datasets-2.11.0-tests.patch
@@ -168,3 +168,85 @@
      def test_task_automatic_speech_recognition(self):
          # Include a dummy extra column `dummy` to test we drop it correctly
          features_before_cast = Features(
+--- a/tests/test_streaming_download_manager.py 2023-05-15 23:06:59.146379973 
+0200
++++ b/tests/test_streaming_download_manager.py 2023-05-15 23:11:32.441363757 
+0200
+@@ -217,6 +217,7 @@
+     assert output_path == 
_readd_double_slash_removed_by_path(Path(expected_path).as_posix())
+ 
+ 
++@pytest.mark.skip(reason="not working in sandbox")
+ @pytest.mark.parametrize(
+     "input_path, exists",
+     [
+@@ -299,6 +300,7 @@
+         assert list(f) == TEST_URL_CONTENT.splitlines(keepends=True)
+ 
+ 
++@pytest.mark.skip(reason="not working in sandbox")
+ @pytest.mark.parametrize(
+     "input_path, expected_paths",
+     [
+@@ -328,6 +330,7 @@
+         xlistdir(root_url, use_auth_token=hf_token)
+ 
+ 
++@pytest.mark.skip(reason="not working in sandbox")
+ @pytest.mark.parametrize(
+     "input_path, isdir",
+     [
+@@ -355,6 +358,7 @@
+         xisdir(root_url, use_auth_token=hf_token)
+ 
+ 
++@pytest.mark.skip(reason="not working in sandbox")
+ @pytest.mark.parametrize(
+     "input_path, isfile",
+     [
+@@ -378,6 +382,7 @@
+     assert xisfile(root_url + "qwertyuiop", use_auth_token=hf_token) is False
+ 
+ 
++@pytest.mark.skip(reason="not working in sandbox")
+ @pytest.mark.parametrize(
+     "input_path, size",
+     [
+@@ -402,6 +407,7 @@
+         xgetsize(root_url + "qwertyuiop", use_auth_token=hf_token)
+ 
+ 
++@pytest.mark.skip(reason="not working in sandbox")
+ @pytest.mark.parametrize(
+     "input_path, expected_paths",
+     [
+@@ -444,6 +450,7 @@
+     assert len(xglob("zip://qwertyuiop/*::" + root_url, 
use_auth_token=hf_token)) == 0
+ 
+ 
++@pytest.mark.skip(reason="not working in sandbox")
+ @pytest.mark.parametrize(
+     "input_path, expected_outputs",
+     [
+@@ -533,6 +540,7 @@
+     def test_xpath_as_posix(self, input_path, expected_path):
+         assert xPath(input_path).as_posix() == expected_path
+ 
++    @pytest.mark.skip(reason="not working in sandbox")
+     @pytest.mark.parametrize(
+         "input_path, exists",
+         [
+@@ -548,6 +556,7 @@
+             (tmp_path / "file.txt").touch()
+         assert xexists(input_path) is exists
+ 
++    @pytest.mark.skip(reason="not working in sandbox")
+     @pytest.mark.parametrize(
+         "input_path, pattern, expected_paths",
+         [
+@@ -586,6 +595,7 @@
+         output_paths = sorted(xPath(input_path).glob(pattern))
+         assert output_paths == expected_paths
+ 
++    @pytest.mark.skip(reason="not working in sandbox")
+     @pytest.mark.parametrize(
+         "input_path, pattern, expected_paths",
+         [

Reply via email to