diff options
author | 2012-03-18 02:21:52 +0100 | |
---|---|---|
committer | 2012-03-18 02:21:52 +0100 | |
commit | f55d5e991e429b224cf9eca30bad1d5443c1443a (patch) | |
tree | 7a2094778f5ba5b19a77e81fa8861767045c6385 /pytest.py | |
parent | Merge (diff) | |
download | pypy-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-x | pytest.py | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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__ |