File: xfail-on-download.patch

package info (click to toggle)
python-xarray 2025.03.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 11,608 kB
  • sloc: python: 110,134; makefile: 255; sh: 53
file content (29 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Alastair McKinstry <mckinstry@debian.org>
Date: Wed, 11 Mar 2020 10:23:10 +0000
Subject: downloads are expected to fail on Debian test machines

Forwarded: not-needed
Last-Updated: 2021-08-25
---
 xarray/tests/test_tutorial.py | 2 ++
 1 file changed, 2 insertions(+)

Index: python-xarray-2025.03.0/xarray/tests/test_tutorial.py
===================================================================
--- python-xarray-2025.03.0.orig/xarray/tests/test_tutorial.py
+++ python-xarray-2025.03.0/xarray/tests/test_tutorial.py
@@ -7,12 +7,14 @@ from xarray.tests import network
 
 @network
 class TestLoadDataset:
+    @pytest.mark_xfail
     def test_download_from_github(self, tmp_path) -> None:
         cache_dir = tmp_path / tutorial._default_cache_dir_name
         ds = tutorial.open_dataset("tiny", cache_dir=cache_dir).load()
         tiny = DataArray(range(5), name="tiny").to_dataset()
         assert_identical(ds, tiny)
 
+    @pytest.mark_xfail
     def test_download_from_github_load_without_cache(
         self, tmp_path, monkeypatch
     ) -> None: