diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-08 12:51:10 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-08 12:51:10 (GMT) |
commit | d3e1207191dcb84a58706a5101177f36c09c5681 (patch) | |
tree | dd8bafcf64e4b1fa8bdf65f21f44a2d04fc89861 /Lib/test/test_urllib.py | |
parent | 6c9678e1a5651bbaa2bfa31d564f2117033fd494 (diff) | |
parent | 25d8aeac7c1e24df79c18f6391b7e42b873d66d8 (diff) | |
download | cpython-d3e1207191dcb84a58706a5101177f36c09c5681.zip cpython-d3e1207191dcb84a58706a5101177f36c09c5681.tar.gz cpython-d3e1207191dcb84a58706a5101177f36c09c5681.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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 94f640b..1a40566 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -1340,7 +1340,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, []) @@ -1352,7 +1352,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, []) |