File: Remove-test-that-requires-the-non-existence-of-an-externa.patch

package info (click to toggle)
python-asdf 2.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,248 kB
  • sloc: python: 13,104; makefile: 125
file content (25 lines) | stat: -rw-r--r-- 866 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
From: Ole Streicher <olebole@debian.org>
Date: Wed, 27 Feb 2019 22:12:42 +0100
Subject: Remove test that requires the (non-)existence of an external
 resource

https://github.com/spacetelescope/asdf/issues/651
---
 asdf/tests/test_reference.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/asdf/tests/test_reference.py b/asdf/tests/test_reference.py
index 745cbc9..ca0a806 100644
--- a/asdf/tests/test_reference.py
+++ b/asdf/tests/test_reference.py
@@ -157,10 +157,6 @@ def test_external_reference_invalid(tmpdir):
     with pytest.raises(ValueError):
         ff.resolve_references()
 
-    ff = asdf.AsdfFile(tree, uri="http://httpstat.us/404")
-    with pytest.raises(IOError):
-        ff.resolve_references()
-
     ff = asdf.AsdfFile(tree, uri=util.filepath_to_url(
         os.path.join(str(tmpdir), 'main.asdf')))
     with pytest.raises(IOError):