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
|
Description: Disable address check since these tests are conceived
to run on the same machine (they check the address against
gethostbyname(gethostname())): see #680799 and #713757 for more details.
Author: Daniele Tricoli <eriol@mornie.org>
Last-Update: 2013-07-08
Forwarded: not-needed
--- a/tests/web/test_logger.py
+++ b/tests/web/test_logger.py
@@ -58,6 +58,11 @@
d["f"] = ""
d["a"] = "Python-urllib/%s" % sys.version[:3]
+ try:
+ del d['h']
+ except KeyError:
+ pass
+
keys = list(d.keys())
for k in keys:
@@ -93,6 +98,11 @@
d["f"] = ""
d["a"] = "Python-urllib/%s" % sys.version[:3]
+ try:
+ del d['h']
+ except KeyError:
+ pass
+
keys = list(d.keys())
for k in keys:
@@ -130,6 +140,11 @@
d["f"] = ""
d["a"] = "Python-urllib/%s" % sys.version[:3]
+ try:
+ del d['h']
+ except KeyError:
+ pass
+
keys = list(d.keys())
for k in keys:
|