File: Remove-loopback-internet-access-test.patch

package info (click to toggle)
python-asdf 2.14.3-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,280 kB
  • sloc: python: 16,612; makefile: 124
file content (26 lines) | stat: -rw-r--r-- 828 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
26
From: Ole Streicher <olebole@debian.org>
Date: Mon, 29 Oct 2018 17:45:22 +0100
Subject: Remove loopback internet access test

This test is supposed to raise an extension; however internet access
is not allowed during build.

Closes: #912255
---
 asdf/tests/test_file_format.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/asdf/tests/test_file_format.py b/asdf/tests/test_file_format.py
index 948017c..9709747 100644
--- a/asdf/tests/test_file_format.py
+++ b/asdf/tests/test_file_format.py
@@ -127,9 +127,6 @@ def test_invalid_source(small_tree):
         with pytest.raises(ValueError):
             ff2.blocks.get_block(2)
 
-        with pytest.raises(IOError):
-            ff2.blocks.get_block("http://ABadUrl.verybad/test.asdf")
-
         with pytest.raises(TypeError):
             ff2.blocks.get_block(42.0)