aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2012-03-18 02:21:52 +0100
committerChristian Tismer <tismer@stackless.com>2012-03-18 02:21:52 +0100
commitf55d5e991e429b224cf9eca30bad1d5443c1443a (patch)
tree7a2094778f5ba5b19a77e81fa8861767045c6385 /pytest.py
parentMerge (diff)
downloadpypy-f55d5e991e429b224cf9eca30bad1d5443c1443a.tar.gz
pypy-f55d5e991e429b224cf9eca30bad1d5443c1443a.tar.bz2
pypy-f55d5e991e429b224cf9eca30bad1d5443c1443a.zip
win64 stage 1 is completely synchronized with default. Starting stage 2 soon.
Diffstat (limited to 'pytest.py')
-rwxr-xr-xpytest.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/pytest.py b/pytest.py
index 56f33b5ed3..2f80221120 100755
--- a/pytest.py
+++ b/pytest.py
@@ -4,6 +4,20 @@ unit and functional testing with Python.
"""
__all__ = ['main']
+# XXX hack for win64:
+# 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"):
+ 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
from _pytest import __version__