[pypy-commit] pypy win64-stage1: win64 stage 1 is completely synchronized with default. Starting stage 2 soon.

ctismer noreply at buildbot.pypy.org
Sun Mar 18 02:25:49 CET 2012


Author: Christian Tismer <tismer at stackless.com>
Branch: win64-stage1
Changeset: r53770:4dc2c43132d0
Date: 2012-03-18 02:21 +0100
http://bitbucket.org/pypy/pypy/changeset/4dc2c43132d0/

Log:	win64 stage 1 is completely synchronized with default. Starting
	stage 2 soon.

diff --git a/pypy/__init__.py b/pypy/__init__.py
--- a/pypy/__init__.py
+++ b/pypy/__init__.py
@@ -1,9 +1,16 @@
 # Empty
+
 # XXX Should be empty again, soon.
 # XXX hack for win64:
-# This patch must stay here until the ENDS OF STAGE 1
+# This patch must stay here until the END OF STAGE 1
 # When all tests work, this branch will be merged
 # and the branch stage 2 is started, where we remove this patch.
 import sys
 if hasattr(sys, "maxsize"):
-    sys.maxint = max(sys.maxint, sys.maxsize)
+    if sys.maxint <> sys.maxsize:
+        sys.maxint = sys.maxsize
+        import warnings
+        warnings.warn("""\n
+---> This win64 port is now in stage 1: sys.maxint was modified.
+---> When pypy/__init__.py becomes empty again, we have reached stage 2.
+""")
diff --git a/pytest.py b/pytest.py
--- a/pytest.py
+++ b/pytest.py
@@ -5,12 +5,18 @@
 __all__ = ['main']
 
 # XXX hack for win64:
-# This patch must stay here until the ENDS OF STAGE 1
+# This patch must stay here until the END OF STAGE 1
 # When all tests work, this branch will be merged
 # and the branch stage 2 is started, where we remove this patch.
 import sys
 if hasattr(sys, "maxsize"):
-    sys.maxint = max(sys.maxint, sys.maxsize)
+    if sys.maxint <> sys.maxsize:
+        sys.maxint = sys.maxsize
+        import warnings
+        warnings.warn("""\n
+---> This win64 port is now in stage 1: sys.maxint was modified.
+---> When pypy/__init__.py becomes empty again, we have reached stage 2.
+""")
 
 from _pytest.core import main, UsageError, _preloadplugins
 from _pytest import core as cmdline


More information about the pypy-commit mailing list