summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-11-13 12:10:16 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2013-11-13 12:10:16 (GMT)
commitca351e6bc5421b1cc3d3d3e17fb762bdd7139ea4 (patch)
treed3869b04792f8758702f0c1e990c1b13c347924e /Lib
parentc46600d8f2a2f4c924ffac942d7225a53592f45d (diff)
downloadcpython-ca351e6bc5421b1cc3d3d3e17fb762bdd7139ea4.zip
cpython-ca351e6bc5421b1cc3d3d3e17fb762bdd7139ea4.tar.gz
cpython-ca351e6bc5421b1cc3d3d3e17fb762bdd7139ea4.tar.bz2
Fix test_socket for repr update
Diffstat (limited to 'Lib')
-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 a7c2516..3c9fbf0 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -650,8 +650,8 @@ class GeneralModuleTests(unittest.TestCase):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
with s:
self.assertIn('fd=%i' % s.fileno(), repr(s))
- self.assertIn('family=%i' % socket.AF_INET, repr(s))
- self.assertIn('type=%i' % socket.SOCK_STREAM, repr(s))
+ self.assertIn('family=%s' % socket.AF_INET, repr(s))
+ self.assertIn('type=%s' % socket.SOCK_STREAM, repr(s))
self.assertIn('proto=0', repr(s))
self.assertNotIn('raddr', repr(s))
s.bind(('127.0.0.1', 0))