Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d1bc408

Browse filesBrowse files
committed
Try reversing order back to original
1 parent 7652213 commit d1bc408
Copy full SHA for d1bc408

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎Lib/test/test_socket.py

Copy file name to clipboardExpand all lines: Lib/test/test_socket.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4862,7 +4862,7 @@ def _testSend(self):
48624862

48634863
class PurePythonSocketPairTest(SocketPairTest):
48644864

4865-
# Explicitly use socketpair AF_INET or AF_INET6 to to ensure that is the
4865+
# Explicitly use socketpair AF_INET or AF_INET6 to ensure that is the
48664866
# code path we're using regardless platform is the pure python one where
48674867
# `_socket.socketpair` does not exist. (AF_INET does not work with
48684868
# _socket.socketpair on many platforms).
@@ -4907,11 +4907,11 @@ def _test_recv(self):
49074907
self.cli.send(MSG)
49084908

49094909
def test_send(self):
4910-
msg = self.cli.recv(1024)
4911-
self.assertEqual(msg, MSG)
4910+
self.serv.send(MSG)
49124911

49134912
def _test_send(self):
4914-
self.serv.send(MSG)
4913+
msg = self.cli.recv(1024)
4914+
self.assertEqual(msg, MSG)
49154915

49164916
def test_ipv4(self):
49174917
cli, srv = socket.socketpair(socket.AF_INET)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.