summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorJosiah Carlson <josiah.carlson@gmail.com>2008-06-10 15:58:19 +0000
committerJosiah Carlson <josiah.carlson@gmail.com>2008-06-10 15:58:19 +0000
commitb67b53db51b470ba0740c97abc16e095ec0cfd28 (patch)
treeef4a479493cb31fd62c1bdae8167fc89ef9af12d /Lib/test
parent1cec7aa7c73163d2ec3ca793ec76be698f4c6558 (diff)
downloadcpython-git-b67b53db51b470ba0740c97abc16e095ec0cfd28.tar.gz
Fixed test to reflect new filedispatcher semantics, as well as two
NameErrors pointed out by Giampaolo.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_asyncore.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncore.py b/Lib/test/test_asyncore.py
index eead905f07..dc4e5d0c55 100644
--- a/Lib/test/test_asyncore.py
+++ b/Lib/test/test_asyncore.py
@@ -384,8 +384,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), "It's not dead")
self.assertEqual(w.read(6), ", it's")
w.close()