From ca351e6bc5421b1cc3d3d3e17fb762bdd7139ea4 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Wed, 13 Nov 2013 22:10:16 +1000 Subject: [PATCH] Fix test_socket for repr update --- Lib/test/test_socket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index a7c25160750..3c9fbf06031 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))