[issue1674555] sys.path in tests contains system directories

2020-01-10 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue1674555] sys.path in tests contains system directories

2016-05-15 Thread Martin Panter
Martin Panter added the comment: I did a quick merge of Arfrever’s 2.7 patch with current code (mainly pgo flags). Unfortunately it didn’t fix my problem with unhandled ImportWarning, but here it is in case it is useful. -- Added file: http://bugs.python.org/file42868/python-2.7-issue1

[issue1674555] sys.path in tests contains system directories

2016-01-20 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue1674555] sys.path in tests contains system directories

2016-01-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +martin.panter, serhiy.storchaka versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___

[issue1674555] sys.path in tests contains system directories

2014-06-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I update my patches every time they stop applying, but I do not feel that it is necessary to frequently attach new patches here. -- ___ Python tracker _

[issue1674555] sys.path in tests contains system directories

2014-06-30 Thread Mark Lawrence
Mark Lawrence added the comment: @Arfrever will you create updated patches as stated in msg136552 ? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker _

[issue1674555] sys.path in tests contains system directories

2013-01-25 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1674555] sys.path in tests contains system directories

2013-01-05 Thread Eli Bendersky
Eli Bendersky added the comment: Issue #16817 discusses a similar problem arising with test___all__. The patches have to be updated to provide a generic way to delegate certain tests to separate subprocesses. Arfrever, it's not necessary to update all the patches at once. Start with the one f

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file20584/python-2.7-issue1674555.patch ___ Python tracker ___ ___

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file20583/python-3.2-issue1674555.patch ___ Python tracker ___ ___

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file28507/python-3.4-issue1674555.patch ___ Python tracker ___ _

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file28506/python-3.3-issue1674555.patch ___ Python tracker ___ _

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file28505/python-3.2-issue1674555.patch ___ Python tracker ___ _

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file28504/python-2.7-issue1674555.patch ___ Python tracker ___ _

[issue1674555] sys.path in tests contains system directories

2012-12-30 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1674555] sys.path in tests contains system directories

2011-05-22 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The advantage of an environment variable is that it is by default inherited by subprocesses. (These patches no longer apply cleanly. I will create updated patches.) -- ___ Python tracker

[issue1674555] sys.path in tests contains system directories

2011-03-25 Thread Éric Araujo
Éric Araujo added the comment: Note that site’s behavior is a bit different in 3.3 thanks to #11591. See http://docs.python.org/dev/library/site#site.main -- nosy: +brett.cannon, carljm versions: +Python 3.3 ___ Python tracker

[issue1674555] sys.path in tests contains system directories

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file20584/python-2.7-issue1674555.patch ___ Python tracker ___ _

[issue1674555] sys.path in tests contains system directories

2011-01-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I'm attaching the patch, which works for me. - New, private variable (_PYTHONNOSITEPACKAGES) disables addition of site-packages directories to sys.path. - regrtest.py always runs test_site.py in a subprocess. -- Added file: http://

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread R. David Murray
R. David Murray added the comment: Ah, I hadn't looked closely enough at site.py to realize that the init work was being done by a 'main()' call. Given that, just moving the main call out should be relatively unlikely to break any custom site.py. Worse case would presumably be main() gettin

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le lundi 03 janvier 2011 à 19:37 +, R. David Murray a écrit : > Or another idea: change site so that it does not execute on import, > but instead the machinery that currently imports test site runs a > 'setup' function after it does the import. I'm not sure

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread R. David Murray
R. David Murray added the comment: Yeah, making a generic way to put specific tests into a subprocess run sounds like a better solution. But... The xml error in test___all__ is due to the fact that test___all__ imports site. So even with the above we'd need to special case site in test___al

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread Matthias Klose
Matthias Klose added the comment: The java/openjdk tests allow setting an attribute `samevm' for running a specific test. maybe something like this could be used for some problematic tests which occasionally hang on some buildds? -- ___ Python tra

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Martin here. Also, since test_site is a special case here, perhaps it could arrange to launch its test cases in a subprocess? I don't think complicating regrtest is the most maintainable approach. -- _

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Apparently this patch isn't sufficient for test___all__. Please create empty _xmlplus directory (without __init__.py) in site-packages directory appropriate for given sys.prefix (e.g. /usr/lib/python3.2/site-packages/_xmlplus for sys.prefi

[issue1674555] sys.path in tests contains system directories

2011-01-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: I find the solution (running every test in a subprocess) a bit too drastic for the problem. How about a modified approach: run regrtest with -S, and have it create a subprocess for test_site only? -- ___ Python tr

[issue1674555] sys.path in tests contains system directories

2010-12-31 Thread R. David Murray
R. David Murray added the comment: Here is a proof of concept patch if anyone wants to play with it.Note that a higher value could be used for the j option; multiple threads help even on uniprocessor systems since a bunch of the tests spend time waiting around. The patch removes the '-l'

[issue1674555] sys.path in tests contains system directories

2010-12-29 Thread R. David Murray
R. David Murray added the comment: One way to "fix" this would be to have make test run the tests with -j1 and pass in the -S and -s flags, and then have regrtest special case test_site and remove those flags for the run of that single test. An interesting facet of this proposal in that it ac

[issue1674555] sys.path in tests contains system directories

2010-08-27 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue1674555] sys.path in tests contains system directories

2010-07-31 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1674555] sys.path in tests contains system directories

2010-06-06 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I noticed the same problem in many tests. E.g. test___all__ fails when pyxml is installed. -- nosy: +Arfrever title: Python 2.5 testsuite sys.path contains system dirs -> sys.path in tests contains system directories versions: +Pyt