Package: mapproxy / 4.0.2+dfsg-2

xfail.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Description: Mark test failing in package build environment with xfail.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: not-needed

--- a/mapproxy/test/system/test_util_wms_capabilities.py
+++ b/mapproxy/test/system/test_util_wms_capabilities.py
@@ -36,6 +36,7 @@ SERVICE_EXCEPTION_FILE = os.path.join(
 )
 
 
+@pytest.mark.xfail(strict=False, reason="ConnectionRefusedError")
 class TestUtilWMSCapabilities(object):
 
     def setup_method(self):
--- a/mapproxy/test/system/test_wms.py
+++ b/mapproxy/test/system/test_wms.py
@@ -391,6 +391,7 @@ class TestWMS111(SysTest):
 
         assert validate_with_dtd(xml, "wms/1.1.1/exception_1_1_1.dtd")
 
+    @pytest.mark.xfail(strict=False, reason="AssertionError")
     def test_direct_layer_non_image_response(self, app):
         self.common_map_req.params["layers"] = "direct"
         expected_req = (
@@ -414,6 +415,7 @@ class TestWMS111(SysTest):
 
             assert validate_with_dtd(xml, "wms/1.1.1/exception_1_1_1.dtd")
 
+    @pytest.mark.xfail(strict=False, reason="RequestsMismatchError")
     def test_get_map_non_image_response(self, app, cache_dir):
         expected_req = (
             {
@@ -987,6 +989,7 @@ class TestWMS110(SysTest):
         assert "No response from URL" in xml.xpath("//ServiceException/text()")[0]
         assert validate_with_dtd(xml, "wms/1.1.0/exception_1_1_0.dtd")
 
+    @pytest.mark.xfail(strict=False, reason="AppError")
     @pytest.mark.flaky(reruns=5, reruns_delay=2)
     def test_get_map(self, app, cache_dir):
         with tmp_image((256, 256), format="jpeg") as img:
@@ -1238,6 +1241,7 @@ class TestWMS100(SysTest):
         xml = resp.lxml
         assert "No response from URL" in xml.xpath("//WMTException/text()")[0]
 
+    @pytest.mark.xfail(strict=False, reason="AppError")
     @pytest.mark.flaky(reruns=5, reruns_delay=2)
     def test_get_map(self, app, cache_dir):
         with tmp_image((256, 256), format="jpeg") as img:
@@ -1473,6 +1477,7 @@ class TestWMS130(SysTest):
         )
         assert validate_with_xsd(xml, xsd_name="wms/1.3.0/exceptions_1_3_0.xsd")
 
+    @pytest.mark.xfail(strict=False, reason="AppError")
     @pytest.mark.flaky(reruns=5, reruns_delay=2)
     def test_get_map(self, app, cache_dir):
         with tmp_image((256, 256), format="jpeg") as img:
--- a/mapproxy/test/unit/test_cache.py
+++ b/mapproxy/test/unit/test_cache.py
@@ -882,6 +882,7 @@ class TestWMSSourceTransform(object):
                             "&format=image%2Fpng&styles=&srs=EPSG%3A4326&request=GetMap&height=450")
 
 
+@pytest.mark.xfail(strict=False, reason="ConnectionRefusedError")
 class TestWMSSourceWithClient(object):
 
     @pytest.fixture
--- a/mapproxy/test/unit/test_client.py
+++ b/mapproxy/test/unit/test_client.py
@@ -41,6 +41,7 @@ TESTSERVER_ADDRESS = ('127.0.0.1', 56413
 TESTSERVER_URL = 'http://%s:%s' % TESTSERVER_ADDRESS
 
 
+@pytest.mark.xfail(strict=False, reason="ConnectionRefusedError")
 class TestHTTPClient(object):
     def setup_method(self):
         self.client = HTTPClient()
@@ -310,6 +311,7 @@ A4GBAFjOKer89961zgK5F7WF0bnj4JXMJTENAKaS
 """
 
 
+@pytest.mark.xfail(strict=False, reason="ConnectionRefusedError")
 class TestTileClient(object):
     def test_tc_path(self):
         template = TileURLTemplate(TESTSERVER_URL + '/%(tc_path)s.png')
@@ -358,6 +360,7 @@ class TestTileClient(object):
             assert resp == b'tile'
 
 
+@pytest.mark.xfail(strict=False, reason="ConnectionRefusedError")
 class TestWMSClient(object):
     def test_no_image(self, caplog):
         try:
--- a/mapproxy/test/unit/test_tiled_source.py
+++ b/mapproxy/test/unit/test_tiled_source.py
@@ -13,6 +13,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+import pytest
 
 from mapproxy.client.tile import TileClient, TileURLTemplate
 from mapproxy.grid import TileGrid
@@ -27,6 +28,7 @@ TEST_SERVER_ADDRESS = ("127.0.0.1", 5641
 TESTSERVER_URL = ("http://%s:%d" % TEST_SERVER_ADDRESS) + "/%(tms_path)s.png"
 
 
+@pytest.mark.xfail(strict=False, reason="ConnectionRefusedError")
 class TestTileClientOnError(object):
 
     def setup_method(self):
--- a/mapproxy/test/unit/test_times.py
+++ b/mapproxy/test/unit/test_times.py
@@ -17,6 +17,7 @@ from mapproxy.util.times import timestam
 import pytest
 
 
+@pytest.mark.xfail(strict=False, reason="Fails in reprotest")
 def test_timestamp_from_isodate():
     ts = timestamp_from_isodate("2009-06-09T10:57:00")
     assert (1244537820.0 - 14 * 3600) < ts < (1244537820.0 + 14 * 3600)
--- a/mapproxy/util/times.py
+++ b/mapproxy/util/times.py
@@ -23,6 +23,13 @@ import calendar
 from email.utils import parsedate
 from wsgiref.handlers import format_date_time
 
+import os
+
+if 'SOURCE_DATE_EPOCH' in os.environ:
+    import pytest
+
+    pytest.skip("Fails in reprotest", allow_module_level=True)
+
 
 def parse_httpdate(date):
     date = parsedate(date)
--- a/mapproxy/test/unit/test_image.py
+++ b/mapproxy/test/unit/test_image.py
@@ -324,6 +324,7 @@ class TestMergeAll(object):
         assert img.size == (300, 300)
         assert img.getcolors() == [(80000, (255, 255, 255)), (10000, (0, 0, 0))]
 
+    @pytest.mark.xfail(strict=False, reason="Fails on s390x")
     def test_invalid_tile(self):
         self.cleanup_tiles = [create_tmp_image_file((100, 100)) for _ in range(9)]
         self.tiles = [ImageSource(tile) for tile in self.cleanup_tiles]
@@ -743,6 +744,7 @@ class TestMakeTransparent(object):
         colors = img.getcolors()
         assert colors == [(1600, (130, 140, 120, 255)), (900, (130, 150, 120, 0))]
 
+    @pytest.mark.xfail(strict=False, reason="Fails on s390x")
     def test_no_match(self):
         img = self._make_test_image()
         img = make_transparent(img, (130, 160, 120), tolerance=5)