Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c46600d commit ca351e6Copy full SHA for ca351e6
1 file changed
Lib/test/test_socket.py
@@ -650,8 +650,8 @@ def test_repr(self):
650
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
651
with s:
652
self.assertIn('fd=%i' % s.fileno(), repr(s))
653
- self.assertIn('family=%i' % socket.AF_INET, repr(s))
654
- 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))
655
self.assertIn('proto=0', repr(s))
656
self.assertNotIn('raddr', repr(s))
657
s.bind(('127.0.0.1', 0))
0 commit comments