|
Example on Linux: $ ./python -u -m test -j0 -u all -r
(...)
== Tests result: SUCCESS ==
450 tests OK.
12 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils test_devpoll test_ioctl
test_kqueue test_launcher test_startfile test_winconsoleio
test_winreg test_winsound test_wmi test_zipfile64
Total cases: run=42,205 skipped=1,027
Total duration: 13 min 1 sec
Tests result: SUCCESS (12 skipped; 1 resource denied)
The "resource denied" test is test_zipfile64: it requires extralargefile resource. 0:03:00 load avg: 16.56 [157/462] test_zipfile64 skipped (resource denied) -- (...)
The extralargefile resource is not enabled by -u all, extract of libregrtest/cmdline.py: # Other resources excluded from --use=all:
#
# - extralagefile (ex: test_zipfile64): really too slow to be enabled
# "by default"
# - tzdata: while needed to validate fully test_datetime, it makes
# test_datetime too slow (15-20 min on some buildbots) and so is disabled by
# default (see bpo-30822).
RESOURCE_NAMES = ALL_RESOURCES + ('extralargefile', 'tzdata')
The 12 skipped tests are: test_kqueue skipped -- test works only on BSD
test_winreg skipped -- No module named 'winreg'
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_startfile skipped -- object <module 'os' from '/home/vstinner/python/main/Lib/os.py'> has no attribute 'startfile'
test_devpoll skipped -- test works only on Solaris OS family
test_ioctl skipped -- Unable to open /dev/tty
test_winconsoleio skipped -- test only relevant on win32
test_wmi skipped -- No module named '_wmi'
test.test_asyncio.test_windows_utils skipped -- Windows only
test_winsound skipped -- No module named 'winsound'
test.test_asyncio.test_windows_events skipped -- Windows only
test_launcher skipped -- test only applies to Windows
|
Sorry, something went wrong.
|
I'm not sure how to name the added statistics: Total cases: run=42,205 skipped=1,027
The term "test" is misleading since it can mean different things: a test file, a test case (class), or a test method. Would it be better to write Total cases here? Something like: 450 tests OK.
Total tests: run=42,205 skipped=1,027
Is it clear that 450 is the number of test files and 42,205 the number of test methods? By the way, Python 3.13 now has test packages like test_asyncio and test_concurrent_futures. A package itself is made of multiple test files. The term "test" alone is even more confusing. The doctest module counts the number of >>> test statements. A single function can have multiple test statements. |
Sorry, something went wrong.
|
Results on GitHub Action jobs. Ubuntu449 tests OK.
10 slowest tests:
- test_gdb: 3 min 13 sec
- test.test_multiprocessing_spawn.test_processes: 1 min 52 sec
- test.test_multiprocessing_forkserver.test_processes: 1 min 17 sec
- test.test_concurrent_futures.test_wait: 1 min 14 sec
- test_subprocess: 1 min 6 sec
- test_socket: 1 min 2 sec
- test_cppext: 1 min 2 sec
- test_venv: 57.6 sec
- test.test_multiprocessing_spawn.test_misc: 56.4 sec
- test_signal: 54.8 sec
13 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils test_devpoll test_ioctl
test_kqueue test_launcher test_peg_generator test_startfile
test_winconsoleio test_winreg test_winsound test_wmi
test_zipfile64
Total cases: run=42,126 skipped=1,131
Total duration: 11 min 55 sec
Tests result: SUCCESS (13 skipped; 2 resource denied)
macOS
440 tests OK.
10 slowest tests:
- test.test_multiprocessing_spawn.test_processes: 2 min 39 sec
- test_signal: 2 min 27 sec
- test_cppext: 2 min 19 sec
- test.test_multiprocessing_forkserver.test_processes: 1 min 49 sec
- test_ssl: 1 min 42 sec
- test_tarfile: 1 min 40 sec
- test_largefile: 1 min 32 sec
- test_statistics: 1 min 20 sec
- test.test_concurrent_futures.test_wait: 1 min 16 sec
- test_zipfile: 1 min 13 sec
22 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils
test.test_multiprocessing_fork.test_manager
test.test_multiprocessing_fork.test_misc
test.test_multiprocessing_fork.test_processes
test.test_multiprocessing_fork.test_threads test_devpoll
test_epoll test_gdb test_ioctl test_launcher test_peg_generator
test_perf_profiler test_perfmaps test_startfile test_tkinter
test_ttk test_winconsoleio test_winreg test_winsound test_wmi
test_zipfile64
Total cases: run=40,314 skipped=1,431
Total duration: 16 min 7 sec
Tests result: SUCCESS (22 skipped; 4 resource denied)
|
Sorry, something went wrong.
|
regrtest fails to count statistics of test_xml_etree_c(). Its test_main() function returns None: Warning -- test_xml_etree_c test runner returned None: <function test_main at 0x7f96d5326a50>
This one can be fixed later. |
Sorry, something went wrong.
|
@AlexWaygood: Yeah, I was thinking about match/case, and I forgot. Sure thing, I updated my PR to use match/case and address your latest review. Oops, I also took it as an opportunity to add some other clenaup/enhancements. It's hard to resisit in the middle of such large refactoring. |
Sorry, something went wrong.
|
Windows x64 GitHub Action job: 424 tests OK.
10 slowest tests:
- test.test_multiprocessing_spawn.test_processes: 4 min 32 sec
- test_tarfile: 2 min 55 sec
- test.test_multiprocessing_spawn.test_manager: 2 min 49 sec
- test_regrtest: 2 min 49 sec
- test_importlib: 2 min 29 sec
- test_socket: 2 min 7 sec
- test_compileall: 2 min 4 sec
- test_launcher: 2 min
- test.test_multiprocessing_spawn.test_misc: 1 min 57 sec
- test_threading: 1 min 52 sec
38 tests skipped:
test.test_asyncio.test_unix_events
test.test_multiprocessing_fork.test_manager
test.test_multiprocessing_fork.test_misc
test.test_multiprocessing_fork.test_processes
test.test_multiprocessing_fork.test_threads
test.test_multiprocessing_forkserver.test_manager
test.test_multiprocessing_forkserver.test_misc
test.test_multiprocessing_forkserver.test_processes
test.test_multiprocessing_forkserver.test_threads test_curses
test_dbm_gnu test_dbm_ndbm test_devpoll test_epoll test_fcntl
test_fork1 test_gdb test_grp test_ioctl test_kqueue test_openpty
test_peg_generator test_perf_profiler test_perfmaps test_poll
test_posix test_pty test_pwd test_readline test_resource
test_syslog test_threadsignals test_wait3 test_wait4
test_xxlimited test_xxtestfuzz test_zipfile64 test_zoneinfo
Total cases: run=40,372 skipped=2,312
Total duration: 23 min 37 sec
Tests result: SUCCESS (38 skipped; 2 resource denied)
|
Sorry, something went wrong.
|
I merged my PR. Thanks a lot @AlexWaygood for your reviews! test_netrc, test_pep646_syntax and test_xml_etree now return results test_xml_etree_c is the last test which is unable to report the number of tests: its test_main() function returns None. |
Sorry, something went wrong.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
|
GH-108818 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
In general, I'm trying to keep libregrtest the same in all stable branches. It seems like 3.11 has an outdated libregrtest :-( |
Sorry, something went wrong.
|
GH-108833 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.