Package: python-httplib2 / 0.18.1-3

skip-broken-autopkgtests.patch Patch series | 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
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 | 5 +----
 tests/test_proxy.py | 2 ++
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/test_http.py b/tests/test_http.py
index f61992c..a2ec1bf 100644
--- a/tests/test_http.py
+++ b/tests/test_http.py
@@ -41,6 +41,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
diff --git a/tests/test_other.py b/tests/test_other.py
index 0f450ab..2a6ff59 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -191,11 +191,8 @@ def test_get_end2end_headers():
     assert len(end2end) == 0
 
 
-@pytest.mark.xfail(
-    os.environ.get("TRAVIS_PYTHON_VERSION") in ("2.7", "pypy"),
-    reason="FIXME: fail on Travis py27 and pypy, works elsewhere",
-)
 @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)
diff --git a/tests/test_proxy.py b/tests/test_proxy.py
index 6f7494d..86618e6 100644
--- a/tests/test_proxy.py
+++ b/tests/test_proxy.py
@@ -36,6 +36,7 @@ def test_from_url_ident():
     assert pi.proxy_pass == "fish"
 
 
+@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")
@@ -44,6 +45,7 @@ def test_from_env(monkeypatch):
     assert pi.proxy_port == 8080
 
 
+@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")