A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-August/145862.html below:

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

[Python-Dev] Failures in test_site.py - how to debug? [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4