STINNER Victor added the comment:
Oh, by the way, -m test -m TestCaseName doesn't work fully on test_asyncio. It
only works if I pass the full test identifier.
With TestCaseName, no test is run:
haypo@selma$ ./python -m test -u all test_asyncio --fail-env-changed -m
PollEventLoopTests
Run tests sequentially
0:00:00 load avg: 6.97 [1/1] test_asyncio
1 test OK.
Total duration: 458 ms
Tests result: SUCCESS
With a full test identifier, a test is run:
haypo@selma$ ./python -m test -u all test_asyncio --fail-env-changed -m
test.test_asyncio.test_events.PollEventLoopTests.test_create_datagram_endpoint_sock
Run tests sequentially
0:00:00 load avg: 7.06 [1/1] test_asyncio
Warning -- threading_cleanup() detected 1 leaked threads (count: 1, dangling: 2)
test_asyncio failed (env changed)
1 test altered the execution environment:
test_asyncio
Total duration: 561 ms
Tests result: ENV CHANGED
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue31324>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com