]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42172: Correct typo for test_socket.py (GH-23013)
authorAkashkumar D Khunt <akashdkhunt@gmail.com>
Fri, 30 Oct 2020 06:03:51 +0000 (11:33 +0530)
committerGitHub <noreply@github.com>
Fri, 30 Oct 2020 06:03:51 +0000 (15:03 +0900)
Lib/test/test_socket.py

index 67ac045330f3ebacdac0aa40cfea370a3b200943..80638325ba3a05f71ba6227b40bd1642f4b36d09 100755 (executable)
@@ -4129,7 +4129,7 @@ class RFC3542AncillaryTest(SendrecvmsgServerTimeoutBase):
 
     @requireAttrs(socket, "CMSG_SPACE", "IPV6_RECVHOPLIMIT", "IPV6_HOPLIMIT",
                   "IPV6_RECVTCLASS", "IPV6_TCLASS")
-    def testSecomdCmsgTruncInData(self):
+    def testSecondCmsgTruncInData(self):
         # Test truncation of the second of two control messages inside
         # its associated data.
         self.serv_sock.setsockopt(socket.IPPROTO_IPV6,
@@ -4164,8 +4164,8 @@ class RFC3542AncillaryTest(SendrecvmsgServerTimeoutBase):
 
         self.assertEqual(ancdata, [])
 
-    @testSecomdCmsgTruncInData.client_skip
-    def _testSecomdCmsgTruncInData(self):
+    @testSecondCmsgTruncInData.client_skip
+    def _testSecondCmsgTruncInData(self):
         self.assertTrue(self.misc_event.wait(timeout=self.fail_timeout))
         self.sendToServer(MSG)