Re: [Python-Dev] Failures in test_site.py - how to debug?

2016年8月19日 14:54:07 -0700

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
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to