summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-08 12:50:08 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-08 12:50:08 (GMT)
commit25d8aeac7c1e24df79c18f6391b7e42b873d66d8 (patch)
tree3171eaac6be60dd8623e5d0ccab67adf38a44215 /Lib/test/test_urllib.py
parent3a20a5deade014a4559a71962600b23ee9f608f4 (diff)
downloadcpython-25d8aeac7c1e24df79c18f6391b7e42b873d66d8.zip
cpython-25d8aeac7c1e24df79c18f6391b7e42b873d66d8.tar.gz
cpython-25d8aeac7c1e24df79c18f6391b7e42b873d66d8.tar.bz2
Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
Diffstat (limited to 'Lib/test/test_urllib.py')
-rw-r--r--Lib/test/test_urllib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index 7a34a05..2dec4e9 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -1264,7 +1264,7 @@ class URLopener_Tests(unittest.TestCase):
# def testTimeoutNone(self):
# # global default timeout is ignored
# import socket
-# self.assertTrue(socket.getdefaulttimeout() is None)
+# self.assertIsNone(socket.getdefaulttimeout())
# socket.setdefaulttimeout(30)
# try:
# ftp = urllib.ftpwrapper("myuser", "mypass", "localhost", 9093, [])
@@ -1276,7 +1276,7 @@ class URLopener_Tests(unittest.TestCase):
# def testTimeoutDefault(self):
# # global default timeout is used
# import socket
-# self.assertTrue(socket.getdefaulttimeout() is None)
+# self.assertIsNone(socket.getdefaulttimeout())
# socket.setdefaulttimeout(30)
# try:
# ftp = urllib.ftpwrapper("myuser", "mypass", "localhost", 9093, [])