[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset d888ff5381594641126065e78dc9210dae4436a4 by Jason R. Coombs in branch 'main': bpo-46425: Partially revert "bpo-46425: fix direct invocation of `test_importlib` (GH-30682)" (GH-30799)

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +28990 pull_request: https://github.com/python/cpython/pull/30803 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +28988 pull_request: https://github.com/python/cpython/pull/30802 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28985 pull_request: https://github.com/python/cpython/pull/30800 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +28984 pull_request: https://github.com/python/cpython/pull/30799 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 1f8014c5b4ea7acee069ca453f6fbcad5990ebf0 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_fileutils` and `test_zoneinfo` (GH-30792) https://github.com/python/cpython/commit/1f8014c5b4ea7acee069ca453f6fbcad5990ebf0

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 57316c52bae5d6420f5067f3891ec328deb97305 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_importlib` (GH-30682) https://github.com/python/cpython/commit/57316c52bae5d6420f5067f3891ec328deb97305 --

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 55f4ec460ee6dcffc26180fd982ad89083c9acb1 by Nikita Sobolev in branch 'main': bpo-46425: use absolute imports in `test_sqlite3` (GH-30676) https://github.com/python/cpython/commit/55f4ec460ee6dcffc26180fd982ad89083c9acb1 --

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 101a184d49756043a0c39dde6eca08b1891137a2 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `test_traceback` (GH-30746) https://github.com/python/cpython/commit/101a184d49756043a0c39dde6eca08b1891137a2 --

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28977 pull_request: https://github.com/python/cpython/pull/30792 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 6111d5dee2b24916ff95dba56efc569396a31851 by Miss Islington (bot) in branch '3.10': bpo-46425: fix direct invocation of `asyncio` tests (GH-30725) (#30782) https://github.com/python/cpython/commit/6111d5dee2b24916ff95dba56efc569396a31851

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread miss-islington
miss-islington added the comment: New changeset 3c4a3745b900e748f99e80fc3728b534e857d1ff by Miss Islington (bot) in branch '3.9': bpo-46425: fix direct invocation of `asyncio` tests (GH-30725) https://github.com/python/cpython/commit/3c4a3745b900e748f99e80fc3728b534e857d1ff --

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 5a5340044ca98cbe6297668d91bccba04b102923 by Nikita Sobolev in branch 'main': bpo-46425: fix direct invocation of `asyncio` tests (#30725) https://github.com/python/cpython/commit/5a5340044ca98cbe6297668d91bccba04b102923 -- nosy:

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +28968 pull_request: https://github.com/python/cpython/pull/30783 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +28967 pull_request: https://github.com/python/cpython/pull/30782 ___ Python tracker

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-21 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28933 pull_request: https://github.com/python/cpython/pull/30746 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 22f73bd9f1fc573d5c998f345b66c29f7ca6614d by Nikita Sobolev in branch 'main': bpo-46425: Fix direct invocation of `test_contextlib` (GH-30681) https://github.com/python/cpython/commit/22f73bd9f1fc573d5c998f345b66c29f7ca6614d --

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-20 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28915 pull_request: https://github.com/python/cpython/pull/30725 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-19 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset a6a088548063226233c08b8d35dde130746fdd10 by Nikita Sobolev in branch '3.10': [3.10] bpo-46425: Fix direct invocation of multiple test modules (GH-30666) (GH-30699) https://github.com/python/cpython/commit/a6a088548063226233c08b8d35dde130746fdd10

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-19 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 8105dd24112509fab2eabfce5352afc41e3a34b6 by Nikita Sobolev in branch '3.9': [3.9] bpo-46425: Fix direct invocation of multiple test modules (GH-30666) (GH-30700) https://github.com/python/cpython/commit/8105dd24112509fab2eabfce5352afc41e3a34b6

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-19 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28898 pull_request: https://github.com/python/cpython/pull/30700 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-19 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28897 pull_request: https://github.com/python/cpython/pull/30699 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-19 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28881 pull_request: https://github.com/python/cpython/pull/30682 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Nikita Sobolev added the comment: Important note, in practice there's also a difference in how one calls some test module: - python Lib/test/test_contextlib.py - python ./Lib/test/test_contextlib.py Example of a test failure because of that: https://github.com/python/cpython/pull/30681

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28880 pull_request: https://github.com/python/cpython/pull/30681 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Nikita Sobolev added the comment: Terry, yes I am using this script to run tests locally: ```bash #!/usr/bin/env bash set -e while read line; do ./python.exe "$line" done < files.txt ``` And this one to populate `files.txt`: ```bash find ./Lib -iname 'test*.py' -o -iname '*tests.py'

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28876 pull_request: https://github.com/python/cpython/pull/30676 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nikita, thanks for doing this. Ethan's suggestion has two advantages. 1. It would fix most backport issues. By containing a mix of changes, PR-30666 cannot be backported as is. 'unittest.main' should always backport unless there is a context conflict.

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Nikita Sobolev added the comment: Thank you, Ethan. Good idea! Will do from the second PR. Thanks for merging, Serhiy. -- ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1292aa6db5bed889a3c87df443754fcae0177801 by Nikita Sobolev in branch 'main': bpo-46425: Fix direct invocation of multiple test modules (GH-30666) https://github.com/python/cpython/commit/1292aa6db5bed889a3c87df443754fcae0177801 --

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Ethan Furman
Ethan Furman added the comment: I suggest your grouping of PRs be by error type -- so have batches of "relative import" fixes and batches of "TESTFN" fixes, etc. -- nosy: +ethan.furman ___ Python tracker

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28866 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30666 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
New submission from Nikita Sobolev : While working on a similar issue for `test_typing.py` (https://bugs.python.org/issue46416) I wondered: how many other modules also have this problem? So, after several hours of local testing, I got several problems: - Lib/test/test_compileall.py Uses