[Python-Dev] Failures in test_site.py - how to debug?
Steve Dower
steve.dower at python.org
Fri Aug 19 17:51:08 EDT 2016
On 19Aug2016 1410, Chris Angelico wrote:
> 2) Change the test to somehow disable .pth execution while keeping the
> rest of site.py intact. This gives more consistent test results, but
> still is mostly applicable to normal usage.
If you start the process with "-S", then run:
import site
site.addpackage = lambda *a: None
site.main()
# rest of the test
Then that should do it. This will cut out all .pth processing, but
shouldn't affect any of the other steps.
Cheers,
Steve
More information about the Python-Dev
mailing list