Commit 17b7356b authored by Christian Tismer's avatar Christian Tismer

buildbot problem partially solved: sys.maxint is now also hacked when called...

buildbot problem partially solved: sys.maxint is now also hacked when called by the buildbot (which uses pytest, not the test_all
parent c0241926
......@@ -10,10 +10,6 @@ http://pytest.org/getting-started.html
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__
......
......@@ -4,7 +4,12 @@ unit and functional testing with Python.
"""
__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__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment