mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Fixed test to reflect new filedispatcher semantics, as well as two
NameErrors pointed out by Giampaolo.
This commit is contained in:
parent
1cec7aa7c7
commit
b67b53db51
2 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue