Since it tests both ntohl and ntohs, the test should not be called
authorGuido van Rossum <guido@python.org>
Mon, 16 Sep 2002 01:30:03 +0000 (01:30 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 16 Sep 2002 01:30:03 +0000 (01:30 +0000)
testNtoHL but testNtoH.

Lib/test/test_socket.py

index 3dea4e0c09b8e3d009afb1866d042d2990203ec3..ca3c4ff218190244a0accd3885b674abc895055c 100644 (file)
@@ -248,7 +248,7 @@ class GeneralModuleTests(unittest.TestCase):
         except socket.error:
             pass
 
-    def testNtoHL(self):
+    def testNtoH(self):
         # This just checks that htons etc. are their own inverse,
         # when looking at the lower 16 or 32 bits.
         sizes = {socket.htonl: 32, socket.ntohl: 32,