$OpenBSD: patch-Lib_test_test_compile_py,v 1.1 2003/12/30 22:21:25 sturm Exp $
--- Lib/test/test_compile.py.orig	2003-12-30 18:31:19.000000000 +0100
+++ Lib/test/test_compile.py	2003-12-30 18:32:14.000000000 +0100
@@ -1,5 +1,7 @@
 from test_support import verbose, TestFailed
 
+import sys
+
 if verbose:
     print "Testing whether compiler catches assignment to __debug__"
 
@@ -125,5 +127,9 @@ expect_same("000000000000008.", 8.)
 expect_same("000000000000009.", 9.)
 
 # Verify treatment of unary minus on negative numbers SF bug #660455
-expect_same("0xffffffff", -1)
-expect_same("-0xffffffff", 1)
+if sys.maxint == 2147483647:
+    expect_same("0xffffffff", -1)
+    expect_same("-0xffffffff", 1)
+else:
+    expect_same("0xffffffffffffffff", -1)
+    expect_same("-0xffffffffffffffff", 1)
