File: skip-broken-autopkgtests.patch

package info (click to toggle)
python-httplib2 0.31.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,172 kB
  • sloc: python: 4,527; javascript: 3,563; makefile: 56
file content (65 lines) | stat: -rw-r--r-- 2,599 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
From: =?utf-8?q?Lukas_M=C3=A4rdian?= <lukas.maerdian@canonical.com>
Date: Mon, 25 May 2020 15:11:00 +0200
Subject: Skip broken autopkgtests

Skip 5 tests, which do not run properly in an isolated autopkgtest
environment
---
 tests/test_http.py  | 1 +
 tests/test_other.py | 2 +-
 tests/test_proxy.py | 3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)

Index: python-httplib2/tests/test_http.py
===================================================================
--- python-httplib2.orig/tests/test_http.py
+++ python-httplib2/tests/test_http.py
@@ -35,6 +35,7 @@ def test_bad_status_line_retry():
     httplib2.RETRIES = old_retries
 
 
+@pytest.mark.skip(reason="Does not run in isolated autopkgtest environment")
 def test_unknown_server():
     http = httplib2.Http()
     http.force_exception_to_status_code = False
Index: python-httplib2/tests/test_other.py
===================================================================
--- python-httplib2.orig/tests/test_other.py
+++ python-httplib2/tests/test_other.py
@@ -186,6 +186,7 @@ def test_get_end2end_headers():
 
 
 @pytest.mark.parametrize("scheme", ("http", "https"))
+@pytest.mark.skip(reason="Does not run in isolated autopkgtest environment")
 def test_ipv6(scheme):
     # Even if IPv6 isn't installed on a machine it should just raise socket.error
     uri = "{scheme}://[::1]:1/".format(scheme=scheme)
@@ -233,7 +234,7 @@ def test_close():
         http.close()
         assert len(http.connections) == 0
 
-
+@pytest.mark.skip(reason="Does not run in isolated autopkgtest environment")
 def test_connect_exception_type():
     # This autoformatting PR actually changed the behavior of error handling:
     # https://github.com/httplib2/httplib2/pull/105/files#diff-c6669c781a2dee1b2d2671cab4e21c66L985
Index: python-httplib2/tests/test_proxy.py
===================================================================
--- python-httplib2.orig/tests/test_proxy.py
+++ python-httplib2/tests/test_proxy.py
@@ -50,6 +50,7 @@ def test_from_url(url, kind, host, port,
 
 
 @pytest.mark.forked
+@pytest.mark.skip(reason="Does not run in isolated autopkgtest environment")
 def test_from_env(monkeypatch):
     assert os.environ.get("http_proxy") is None
     monkeypatch.setenv("http_proxy", "http://myproxy.example.com:8080")
@@ -59,6 +60,7 @@ def test_from_env(monkeypatch):
 
 
 @pytest.mark.forked
+@pytest.mark.skip(reason="Does not run in isolated autopkgtest environment")
 def test_from_env_https(monkeypatch):
     assert os.environ.get("http_proxy") is None
     monkeypatch.setenv("http_proxy", "http://myproxy.example.com:80")