summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncore.py
diff options
context:
space:
mode:
authorJosiah Carlson <josiah.carlson@gmail.com>2008-07-07 04:15:08 (GMT)
committerJosiah Carlson <josiah.carlson@gmail.com>2008-07-07 04:15:08 (GMT)
commitd74900ebb5a22b387b49684990da1925e1d6bdc9 (patch)
tree2bdffc475f22a3db675656e49458f74ebfc39951 /Lib/test/test_asyncore.py
parentd51ee54a232f4986abd18a4113f3af1158c2fd53 (diff)
downloadcpython-d74900ebb5a22b387b49684990da1925e1d6bdc9.zip
cpython-d74900ebb5a22b387b49684990da1925e1d6bdc9.tar.gz
cpython-d74900ebb5a22b387b49684990da1925e1d6bdc9.tar.bz2
Committing Py3k version of changelist 64080 and 64257, along with updated tests
for smtpd, which required updating with the new semantics.
Diffstat (limited to 'Lib/test/test_asyncore.py')
-rw-r--r--Lib/test/test_asyncore.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py
index eb52687..716368b 100644
--- a/Lib/test/test_asyncore.py
+++ b/Lib/test/test_asyncore.py
@@ -28,6 +28,9 @@ class dummychannel:
def __init__(self):
self.socket = dummysocket()
+ def close(self):
+ self.socket.close()
+
class exitingdummy:
def __init__(self):
pass
@@ -382,8 +385,8 @@ if hasattr(asyncore, 'file_wrapper'):
fd = os.open(TESTFN, os.O_RDONLY)
w = asyncore.file_wrapper(fd)
- self.assertEqual(w.fd, fd)
- self.assertEqual(w.fileno(), fd)
+ self.assertNotEqual(w.fd, fd)
+ self.assertNotEqual(w.fileno(), fd)
self.assertEqual(w.recv(13), b"It's not dead")
self.assertEqual(w.read(6), b", it's")
w.close()