b218f78daf
* Thu Apr 12 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-1 - 3.2.3; refresh patch 6 (no static lib), patch 102 (lib64) and patch 129 (test_subprocess); fix test_gdb (patches 152 and 153); regenerate the autotool intermediates patch (patch 300); run unit tests verbosely; add support for skipping unit tests in rpmbuild (patch 132), use it to skip a specific urllib test (patch 154)
12 lines
711 B
Diff
12 lines
711 B
Diff
diff -up Python-3.2.3/Lib/test/test_urllib.py.dns Python-3.2.3/Lib/test/test_urllib.py
|
|
--- Python-3.2.3/Lib/test/test_urllib.py.dns 2012-04-13 15:36:36.619369718 -0400
|
|
+++ Python-3.2.3/Lib/test/test_urllib.py 2012-04-13 15:49:39.439583119 -0400
|
|
@@ -1146,6 +1146,7 @@ class Utility_Tests(unittest.TestCase):
|
|
self.assertEqual(('user 2', 'ab'),urllib.parse.splitpasswd('user 2:ab'))
|
|
self.assertEqual(('user+1', 'a+b'),urllib.parse.splitpasswd('user+1:a+b'))
|
|
|
|
+ @unittest._skipInRpmBuild('test requires working DNS')
|
|
def test_thishost(self):
|
|
"""Test the urllib.request.thishost utility function returns a tuple"""
|
|
self.assertIsInstance(urllib.request.thishost(), tuple)
|