[issue31038] test_runpy causes running all Python tests when run directly

2022-01-16 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker _

[issue31038] test_runpy causes running all Python tests when run directly

2017-07-26 Thread Nick Coghlan
Nick Coghlan added the comment: This is a result of a known quirk in the way sys.path entry execution works: the search for "__main__.py" isn't constrained specifically to sys.path[0]. That's almost entirely a bad thing, but I'd been ignoring it because I hadn't thought of a nice way of fixing

[issue31038] test_runpy causes running all Python tests when run directly

2017-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After commenting out methods test_directory_error, test_zipfile_error and test_main_recursion_error, test_runpy is passed. -- nosy: +ncoghlan ___ Python tracker

[issue31038] test_runpy causes running all Python tests when run directly

2017-07-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python Lib/test/test_runpy.py ...== CPython 3.7.0a0 (heads/master-dirty:39243779f4, Jul 25 2017, 14:32:21) [GCC 6.3.0 20170406] == Linux-4.10.0-28-generic-i686-athlon-with-debian-stretch-sid little-endian == hash algorithm: siphash24