mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-python/asdf: initial import
Package-Manager: portage-2.3.3
This commit is contained in:
@@ -0,0 +1,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')
|
||||
|
||||
Reference in New Issue
Block a user