You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Direct invocation of Lib/test/test_typing.py fails #90574
New changeset 2792d6d by Nikita Sobolev in branch 'main': bpo-46416: Allow direct invocation of [Lib/test/test_typing.py](https://github.com/python/cpython/blob/main/Lib/test/test_typing.py) (GH-30641) 2792d6d
New changeset eaeb994 by Nikita Sobolev in branch '3.10':
[3.10] bpo-46416: Allow direct invocation of [Lib/test/test_typing.py](https://github.com/python/cpython/blob/main/Lib/test/test_typing.py) (GH-30641) (GH-30697) eaeb994
I noticed that you have been looking into the __main__ block of test modules. Wouldn't it make more sense to just remove the __main__ and have all tests go through regrtest? Everybody should use
During this work some people have mentioned that they actually use '__main__' for local debugging of tests.
I don't think that I am familiar enough with the existing workflow to make
any educated decision :)
I noticed that you have been looking into the __main__ block of test
modules. Wouldn't it make more sense to just remove the __main__ and have
all tests go through regrtest? Everybody should use
Activity
sobolevn commentedon Jan 17, 2022
Here's the problem:
I think it is a good idea to use the same hack we have in
test_enum.py:cpython/Lib/test/test_enum.py
Line 34 in 83d544b
PR is on its way :)
Fidget-Spinner commentedon Jan 19, 2022
New changeset 2792d6d by Nikita Sobolev in branch 'main':
bpo-46416: Allow direct invocation of
[Lib/test/test_typing.py](https://github.com/python/cpython/blob/main/Lib/test/test_typing.py)(GH-30641)2792d6d
Fidget-Spinner commentedon Jan 24, 2022
New changeset eaeb994 by Nikita Sobolev in branch '3.10':
[3.10] bpo-46416: Allow direct invocation of
[Lib/test/test_typing.py](https://github.com/python/cpython/blob/main/Lib/test/test_typing.py)(GH-30641) (GH-30697)eaeb994
tiran commentedon Jan 24, 2022
I noticed that you have been looking into the __main__ block of test modules. Wouldn't it make more sense to just remove the __main__ and have all tests go through regrtest? Everybody should use
./python -m regrtest test_typing
or the Windows equivalent to run typing tests.
sobolevn commentedon Jan 24, 2022
During this work some people have mentioned that they actually use
'__main__'for local debugging of tests.I don't think that I am familiar enough with the existing workflow to make
any educated decision :)
пн, 24 янв. 2022 г. в 19:34, Christian Heimes <report@bugs.python.org>: