Don't use hex constants representing negative numbers.
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 @@
 
     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