[issue29162] pyshell.py: name 'sys' is not defined

Terry J. Reedy report at bugs.python.org
Sun Mar 26 22:04:02 EDT 2017


Terry J. Reedy added the comment:

Reopening because I missed file=sys.__stderr__ in the print() above sys.exit ;-(.  Reported by JelleZijlstra in PR.

I wonder if there is any way to force an import to fail when testing.  I could at least partly test by moving the code for import failure and that for "if TkVersion < 8.5" into functions.

----------
resolution: fixed -> 
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29162>
_______________________________________


More information about the Python-bugs-list mailing list