Commit | Line | Data |
---|---|---|
26176bee MB |
1 | Skip test that requires getaddrinfo(), which is not available in the build |
2 | environment. This package uses a regexp for finding tests (see runner.py), | |
3 | so using @unittest.skip does not work. | |
4 | ||
5 | --- a/waitress/tests/test_adjustments.py | |
6 | +++ b/waitress/tests/test_adjustments.py | |
7 | @@ -185,22 +185,6 @@ | |
8 | def test_bad_port(self): | |
9 | self.assertRaises(ValueError, self._makeOne, listen='127.0.0.1:test') | |
10 | ||
11 | - def test_service_port(self): | |
12 | - if WIN and PY2: # pragma: no cover | |
13 | - # On Windows and Python 2 this is broken, so we raise a ValueError | |
14 | - self.assertRaises( | |
15 | - ValueError, | |
16 | - self._makeOne, | |
17 | - listen='127.0.0.1:http', | |
18 | - ) | |
19 | - return | |
20 | - | |
21 | - inst = self._makeOne(listen='127.0.0.1:http 0.0.0.0:https') | |
22 | - | |
23 | - bind_pairs = [sockaddr[:2] for (_, _, _, sockaddr) in inst.listen] | |
24 | - | |
25 | - self.assertEqual(bind_pairs, [('127.0.0.1', 80), ('0.0.0.0', 443)]) | |
26 | - | |
27 | def test_dont_mix_host_port_listen(self): | |
28 | self.assertRaises( | |
29 | ValueError, |