summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-11-22 00:41:45 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-11-22 00:41:45 (GMT)
commit44309e6b3768d6d559491ddf6ca56bfad2adb9b5 (patch)
tree5d71526f8d1b06a39c67191bf55e85e68c205c95 /Lib/test/test_socket.py
parent656aa28cd50d00171d46df30eaeecd45eb0ae32c (diff)
downloadcpython-44309e6b3768d6d559491ddf6ca56bfad2adb9b5.zip
cpython-44309e6b3768d6d559491ddf6ca56bfad2adb9b5.tar.gz
cpython-44309e6b3768d6d559491ddf6ca56bfad2adb9b5.tar.bz2
make FileIO.mode always include 'b'
#4386 Reviewed by Amaury
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index b2323fe..51f41a9 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -849,11 +849,11 @@ class FileObjectClassTestCase(SocketConnectedTest):
self.assert_(not self.cli_file.closed)
def testAttributes(self):
- self.assertEqual(self.serv_file.mode, 'r')
+ self.assertEqual(self.serv_file.mode, 'rb')
self.assertEqual(self.serv_file.name, self.cli_conn.fileno())
def _testAttributes(self):
- self.assertEqual(self.cli_file.mode, 'w')
+ self.assertEqual(self.cli_file.mode, 'wb')
self.assertEqual(self.cli_file.name, self.serv_conn.fileno())
class UnbufferedFileObjectClassTestCase(FileObjectClassTestCase):