[pypy-commit] pypy win64-stage1: buildbot problem partially solved: sys.maxint is now also hacked when called by the buildbot (which uses pytest, not the test_all
ctismer
noreply at buildbot.pypy.org
Sat Nov 12 13:42:10 CET 2011
Author: Christian Tismer <tismer at stackless.com>
Branch: win64-stage1
Changeset: r49357:30f9db926aa8
Date: 2011-11-12 13:20 +0100
http://bitbucket.org/pypy/pypy/changeset/30f9db926aa8/
Log: buildbot problem partially solved: sys.maxint is now also hacked
when called by the buildbot (which uses pytest, not the test_all
diff --git a/pypy/test_all.py b/pypy/test_all.py
--- a/pypy/test_all.py
+++ b/pypy/test_all.py
@@ -10,10 +10,6 @@
For more information, use test_all.py -h.
"""
import sys, os
-# XXX hack for win64:
-# this needs to be done without hacking maxint
-if hasattr(sys, "maxsize"):
- sys.maxint = max(sys.maxint, sys.maxsize)
if len(sys.argv) == 1 and os.path.dirname(sys.argv[0]) in '.':
print >> sys.stderr, __doc__
diff --git a/pytest.py b/pytest.py
--- a/pytest.py
+++ b/pytest.py
@@ -4,7 +4,12 @@
"""
__all__ = ['main']
-from _pytest.core import main, UsageError, _preloadplugins
+# XXX hack for win64:
+# this needs to be done without hacking maxint
+import sys
+if hasattr(sys, "maxsize"):
+ sys.maxint = max(sys.maxint, sys.maxsize)
+
from _pytest import core as cmdline
from _pytest import __version__
More information about the pypy-commit
mailing list