File: Remove-loopback-internet-access-test.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 (27 lines) | stat: -rw-r--r-- 873 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
27
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 | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/asdf/tests/test_file_format.py b/asdf/tests/test_file_format.py
index 0b93882..3c6bc6b 100644
--- a/asdf/tests/test_file_format.py
+++ b/asdf/tests/test_file_format.py
@@ -128,10 +128,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://127.0.0.1/")
-            ff2.blocks.get_block("http://0.42.42.42/")
-
         with pytest.raises(TypeError):
             ff2.blocks.get_block(42.0)