summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-12 22:01:24 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-12 22:01:24 (GMT)
commit558fc977c5eea1af25fca4bf7f28a41756ba2ad6 (patch)
treef136b884f3a61ab4702d8fe89ad2d115bc0c9c18 /Lib/test/test_socket.py
parentdc15c27f505930a69c73f8c2baf1f9caff9252ef (diff)
downloadcpython-558fc977c5eea1af25fca4bf7f28a41756ba2ad6.zip
cpython-558fc977c5eea1af25fca4bf7f28a41756ba2ad6.tar.gz
cpython-558fc977c5eea1af25fca4bf7f28a41756ba2ad6.tar.bz2
Don't use hex constants representing negative numbers.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 3583d41..2f2ef63 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -249,7 +249,7 @@ class GeneralModuleTests(unittest.TestCase):
def testNtoH(self):
for func in socket.htonl, socket.ntohl:
- for i in (0, 1, 0xffff0000, 2L):
+ for i in (0, 1, ~0xffff, 2L):
self.assertEqual(i, func(func(i)))
biglong = 2**32L - 1