[issue19828] test_site fails with -S flag

R. David Murray report at bugs.python.org
Sun Dec 1 18:33:04 CET 2013


R. David Murray added the comment:

That's not relevant, though.  In fact, the existing error message for running the module directly is exactly correct: the entire test module fails to run, which is a more accurate reflection of the reality than showing all of the individual tests as skipped.  

If you run test_site under the test harness you also currently get the correct result:

rdmurray at hey:~/python/p34>./python -S Lib/test test_site
[1/1] test_site
test_site skipped -- importation of site.py suppressed
1 test skipped:
    test_site

In other words, you don't need to do anything to test_site to get it to work correctly for your desired goal, it already does.

----------

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


More information about the Python-bugs-list mailing list