summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_poplib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-02-08 13:06:43 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-02-08 13:06:43 (GMT)
commit1ff23d7542862935fc3fbddb1785fcebfd17e8b2 (patch)
tree4894e01ecfad7a019d1a3167f4918c7805b3b400 /Lib/test/test_poplib.py
parentd3e1207191dcb84a58706a5101177f36c09c5681 (diff)
parent578c6777aad7a9c3d7ffe6b8726d8c3779cccbeb (diff)
downloadcpython-1ff23d7542862935fc3fbddb1785fcebfd17e8b2.zip
cpython-1ff23d7542862935fc3fbddb1785fcebfd17e8b2.tar.gz
cpython-1ff23d7542862935fc3fbddb1785fcebfd17e8b2.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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py
index aced208..d076fc1 100644
--- a/Lib/test/test_poplib.py
+++ b/Lib/test/test_poplib.py
@@ -468,7 +468,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)
@@ -478,13 +478,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):