[Python-Dev] Failures in test_site.py - how to debug? (original) (raw)
Steve Dower steve.dower at python.org
Fri Aug 19 17:51:08 EDT 2016
- Previous message (by thread): [Python-Dev] Failures in test_site.py - how to debug?
- Next message (by thread): [Python-Dev] Failures in test_site.py - how to debug?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] Failures in test_site.py - how to debug?
- Next message (by thread): [Python-Dev] Failures in test_site.py - how to debug?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]