]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix test_socket for repr update
authorNick Coghlan <ncoghlan@gmail.com>
Wed, 13 Nov 2013 12:10:16 +0000 (22:10 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Wed, 13 Nov 2013 12:10:16 +0000 (22:10 +1000)
Lib/test/test_socket.py

index a7c25160750d765dc230e847aebc66e5d49d0c70..3c9fbf0603131d714cd9ab937ec7af04a9d59b96 100644 (file)
@@ -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))