Kaydet (Commit) c0a0e081 authored tarafından Guido van Rossum's avatar Guido van Rossum

Since it tests both ntohl and ntohs, the test should not be called

testNtoHL but testNtoH.
üst aae20949
...@@ -248,7 +248,7 @@ class GeneralModuleTests(unittest.TestCase): ...@@ -248,7 +248,7 @@ class GeneralModuleTests(unittest.TestCase):
except socket.error: except socket.error:
pass pass
def testNtoHL(self): def testNtoH(self):
# This just checks that htons etc. are their own inverse, # This just checks that htons etc. are their own inverse,
# when looking at the lower 16 or 32 bits. # when looking at the lower 16 or 32 bits.
sizes = {socket.htonl: 32, socket.ntohl: 32, sizes = {socket.htonl: 32, socket.ntohl: 32,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment