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
Python-Dev@python.org
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