forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asdf-1.2.1-Disable-test-that-require-http-server.patch
53 lines (40 loc) · 2 KB
/
asdf-1.2.1-Disable-test-that-require-http-server.patch
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 <[email protected]>
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
[email protected](sys.platform.startswith('win'),
- reason="Windows firewall prevents test")
[email protected](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)
[email protected](sys.platform.startswith('win'),
- reason="Windows firewall prevents test")
[email protected](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
[email protected](sys.platform.startswith('win'),
- reason="Windows firewall prevents test")
[email protected](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)
[email protected](sys.platform.startswith('win'),
- reason="Windows firewall prevents test")
[email protected](True, reason="pbuilder prevents test")
def test_exploded_http(tree, httpserver):
path = os.path.join(httpserver.tmpdir, 'test.asdf')