]> granicus.if.org Git - python/commit
Add a new test script that tests various features of the sys
authorWalter Dörwald <walter@livinglogic.de>
Mon, 3 Feb 2003 23:03:49 +0000 (23:03 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Mon, 3 Feb 2003 23:03:49 +0000 (23:03 +0000)
commitc3502467d476a07b5a522660d3b35664ca90b345
treed7a2a9bf0ad168d617c4ff8bb75a8be73a0e9182
parent894453a28db899187a2b2779915ac73bd87a1051
Add a new test script that tests various features of the sys
module. This increases code coverage of Python/sysmodule.c
from 68% to 77% (on Linux).

The script doesn't exercise the error branch that handles an evil
or lost sys.excepthook in Python/pythonrun.c::PyErr_PrintEx().

Also this script might not work on Jython in its current form.

From SF patch #662807.
Lib/test/test_sys.py [new file with mode: 0644]