Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca351e6

Browse files
committed
Fix test_socket for repr update
1 parent c46600d commit ca351e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_socket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,8 @@ def test_repr(self):
650650
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
651651
with s:
652652
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))
653+
self.assertIn('family=%s' % socket.AF_INET, repr(s))
654+
self.assertIn('type=%s' % socket.SOCK_STREAM, repr(s))
655655
self.assertIn('proto=0', repr(s))
656656
self.assertNotIn('raddr', repr(s))
657657
s.bind(('127.0.0.1', 0))

0 commit comments

Comments
 (0)