File: ignore_tests_accessing_network.patch

package info (click to toggle)
python-cogent 2023.2.12a1%2Bdfsg-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,416 kB
  • sloc: python: 89,165; makefile: 117; sh: 16
file content (38 lines) | stat: -rw-r--r-- 1,308 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
30
31
32
33
34
35
36
37
38
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 29 Sep 2022 09:27:12 +0200
Description: Ignore some tests that try to access network

--- a/tests/test_util/test_io.py
+++ b/tests/test_util/test_io.py
@@ -317,6 +317,7 @@ def test_open_zip_multi(tmp_dir):
         open_(zip_path)
 
 
+@pytest.mark.skip(reason="Do not test in Debian since offline")
 @pytest.mark.parametrize(
     "mode",
     ("r", "rb", "rt", None),
@@ -357,6 +358,7 @@ def test_open_url_local():
     assert remote_data.splitlines() == local_data.splitlines()
 
 
+@pytest.mark.skip(reason="Do not test in Debian since offline")
 def test_open_url_compressed():
     """comparing compressed file handling"""
     file_name = "formattest.fasta.gz"
@@ -373,6 +375,7 @@ def test_open_url_compressed():
     assert remote_data.splitlines() == local_data.splitlines()
 
 
+@pytest.mark.skip(reason="Do not test in Debian since offline")
 def test_open_url_write_exceptions():
     """Test 'w' mode (should raise Exception)"""
     with pytest.raises(Exception):
@@ -382,6 +385,7 @@ def test_open_url_write_exceptions():
         )
 
 
+@pytest.mark.skip(reason="Do not test in Debian since offline")
 def test_open_url_exceptions():
     """non-http(s) address for url (should raise Exception)"""
     with pytest.raises(Exception):