diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-08 13:06:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-08 13:06:08 (GMT) |
commit | 578c6777aad7a9c3d7ffe6b8726d8c3779cccbeb (patch) | |
tree | 4da7e4ee1b7fffd8ae04bbadb1f5ba1b19782590 /Lib/test/test_poplib.py | |
parent | 25d8aeac7c1e24df79c18f6391b7e42b873d66d8 (diff) | |
download | cpython-578c6777aad7a9c3d7ffe6b8726d8c3779cccbeb.zip cpython-578c6777aad7a9c3d7ffe6b8726d8c3779cccbeb.tar.gz cpython-578c6777aad7a9c3d7ffe6b8726d8c3779cccbeb.tar.bz2 |
Issue #20549: Use specific asserts in mailbox, smtplib and poplib tests.
Diffstat (limited to 'Lib/test/test_poplib.py')
-rw-r--r-- | Lib/test/test_poplib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py index cbce852..5809be6 100644 --- a/Lib/test/test_poplib.py +++ b/Lib/test/test_poplib.py @@ -350,7 +350,7 @@ class TestTimeouts(TestCase): serv.close() def testTimeoutDefault(self): - self.assertTrue(socket.getdefaulttimeout() is None) + self.assertIsNone(socket.getdefaulttimeout()) socket.setdefaulttimeout(30) try: pop = poplib.POP3(HOST, self.port) @@ -360,13 +360,13 @@ class TestTimeouts(TestCase): pop.sock.close() def testTimeoutNone(self): - self.assertTrue(socket.getdefaulttimeout() is None) + self.assertIsNone(socket.getdefaulttimeout()) socket.setdefaulttimeout(30) try: pop = poplib.POP3(HOST, self.port, timeout=None) finally: socket.setdefaulttimeout(None) - self.assertTrue(pop.sock.gettimeout() is None) + self.assertIsNone(pop.sock.gettimeout()) pop.sock.close() def testTimeoutValue(self): |