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

package info (click to toggle)
python-asdf 2.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,200 kB
  • sloc: python: 17,406; makefile: 124; ansic: 88
file content (25 lines) | stat: -rw-r--r-- 863 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 43b7d0f..2e269b5 100644
--- a/asdf/tests/test_reference.py
+++ b/asdf/tests/test_reference.py
@@ -156,10 +156,6 @@ def test_external_reference_invalid(tmpdir):
     with pytest.raises(ValueError):
         ff.resolve_references()
 
-    ff = asdf.AsdfFile(tree, uri="http://nowhere.com/")
-    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):