Commit 485bb2ad authored by Kevin Modzelewski's avatar Kevin Modzelewski

Last few fixes to get tester self-hosted

sys.version_info (just as tuple, not as "version_info" object)
Change test that depends on what fds are open
Fix threading bug in tester

The tester now runs in self-hosted mode!  Try
$ make check SELF_HOST=1
parent 987b72a1
......@@ -264,6 +264,10 @@ void setupSys() {
sys_module->giveAttr("version", boxString(generateVersionString()));
sys_module->giveAttr("hexversion", boxInt(PY_VERSION_HEX));
// TODO: this should be a "sys.version_info" object, not just a tuple (ie can access fields by name)
sys_module->giveAttr("version_info",
new BoxedTuple({ boxInt(PYTHON_VERSION_MAJOR), boxInt(PYTHON_VERSION_MINOR),
boxInt(PYTHON_VERSION_MICRO), boxStrConstant("beta"), boxInt(0) }));
sys_module->giveAttr("maxint", boxInt(PYSTON_INT_MAX));
......
# skip-if: sys.version_info.micro < 4
# skip-if: sys.version_info < (2, 7, 4)
# - Error message changed in 2.7.4
# Regression test:
......
# skip-if: sys.version_info.micro < 4
# skip-if: sys.version_info < (2, 7, 4)
# - Error message changed in 2.7.4
# object.__new__ doesn't complain if __init__ is overridden:
......
......@@ -21,7 +21,7 @@ gc.collect()
p.unregister(f)
p.register(f)
try:
print p.poll(10)
print len(p.poll(10))
finally:
f.close()
gc.collect()
......
......@@ -336,8 +336,8 @@ def worker_thread():
except:
import traceback
# traceback.print_exc()
results[job[0]] = None
quit[job[0]] = job[0] + ':\n' + traceback.format_exc()
results[job[0]] = None
with cv:
cv.notifyAll()
# os._exit(-1)
......
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