summaryrefslogtreecommitdiff
blob: e59d48246000ca554aa3bc66c2797a6ceff27b9a (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From: Ole Streicher <olebole@debian.org>
Date: Sat, 5 Nov 2016 14:03:24 +0100
Subject: Disable test that require http server

Network connections are not available in pbuilder.
---
 asdf/tests/test_generic_io.py | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/asdf/tests/test_generic_io.py b/asdf/tests/test_generic_io.py
index 3f48eab..b90ca7e 100644
--- a/asdf/tests/test_generic_io.py
+++ b/asdf/tests/test_generic_io.py
@@ -241,8 +241,7 @@ def test_streams2():
     assert len(x) == 60
 
 
-@pytest.mark.skipif(sys.platform.startswith('win'),
-                    reason="Windows firewall prevents test")
+@pytest.mark.skipif(True, reason="pbuilder prevents test")
 def test_urlopen(tree, httpserver):
     path = os.path.join(httpserver.tmpdir, 'test.asdf')
 
@@ -260,8 +259,7 @@ def test_urlopen(tree, httpserver):
         assert isinstance(next(ff.blocks.internal_blocks)._data, np.ndarray)
 
 
-@pytest.mark.skipif(sys.platform.startswith('win'),
-                    reason="Windows firewall prevents test")
+@pytest.mark.skipif(True, reason="pbuilder prevents test")
 def test_http_connection(tree, httpserver):
     path = os.path.join(httpserver.tmpdir, 'test.asdf')
 
@@ -284,8 +282,7 @@ def test_http_connection(tree, httpserver):
         ff.tree['science_data'][0] == 42
 
 
-@pytest.mark.skipif(sys.platform.startswith('win'),
-                    reason="Windows firewall prevents test")
+@pytest.mark.skipif(True, reason="pbuilder prevents test")
 def test_http_connection_range(tree, rhttpserver):
     path = os.path.join(rhttpserver.tmpdir, 'test.asdf')
     connection = [None]
@@ -348,8 +345,7 @@ def test_exploded_filesystem_fail(tree, tmpdir):
                 helpers.assert_tree_match(tree, ff.tree)
 
 
-@pytest.mark.skipif(sys.platform.startswith('win'),
-                    reason="Windows firewall prevents test")
+@pytest.mark.skipif(True, reason="pbuilder prevents test")
 def test_exploded_http(tree, httpserver):
     path = os.path.join(httpserver.tmpdir, 'test.asdf')