cpython/Lib/test
Victor Stinner a341750078
gh-109162: Refactor libregrtest.Regrtest (#109206)
* Add type hint types: TestName, StrPath, StrJSON.
* Add attributes to Regrtest:

  * cmdline_args
  * coverage
  * coverage_dir
  * fail_rerun
  * next_single_filename
  * print_slowest
  * tmp_dir
  * want_rerun
  * want_run_leaks

* Remove Regrtest.ns attribute.
* Rename Regrtest methods:

  * cleanup() => cleanup_temp_dir()
  * create_temp_dir() => make_temp_dir()
  * set_temp_dir() => select_temp_dir()

* Convert Regrtest methods to static methods:

  * cleanup_temp_dir()
  * display_header()
  * fix_umask()
  * get_rerun_match_tests()
  * list_tests()
  * make_temp_dir()
  * select_temp_dir()

* Remove display_sanitizers() method: move code into
  display_header().
* Rename 'test_cwd' variable to 'work_dir'.
2023-09-10 03:07:05 +02:00
..
audiodata
capath
cjkencodings
crashers
data
decimaltestdata
dtracedata
encoded_modules
leakers
libregrtest gh-109162: Refactor libregrtest.Regrtest (#109206) 2023-09-10 03:07:05 +02:00
subprocessdata
support gh-109162: libregrtest: remove WorkerJob class (#109204) 2023-09-10 01:41:21 +02:00
test_asyncio gh-109015: Add test.support.socket_helper.tcp_blackhole() (#109016) 2023-09-07 01:58:03 +02:00
test_capi gh-109050: Remove remaining tests for legacy Unicode C API (GH-109068) 2023-09-09 05:44:46 +00:00
test_concurrent_futures gh-107219: Fix concurrent.futures terminate_broken() (#108974) 2023-09-06 15:57:01 +02:00
test_cppext
test_ctypes GH-108716: Turn off deep-freezing of code objects. (GH-108722) 2023-09-08 10:34:40 +01:00
test_dataclasses gh-108303: Create Lib/test/test_dataclasses/ directory (#108978) 2023-09-06 15:54:16 +02:00
test_email gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) 2023-09-02 07:45:34 +03:00
test_import
test_importlib
test_json
test_module
test_multiprocessing_fork
test_multiprocessing_forkserver
test_multiprocessing_spawn
test_peg_generator
test_sqlite3
test_tkinter gh-90791: Enable test___all__ on ASAN build (#108286) 2023-08-22 15:52:32 +02:00
test_tomllib gh-108851: Fix tomllib recursion tests (#108853) 2023-09-06 17:34:31 +02:00
test_tools
test_ttk
test_unittest gh-108927: Fix test_import + test_importlib + test_unittest problem (#108929) 2023-09-05 18:57:48 +00:00
test_warnings
test_zipfile
test_zoneinfo
tkinterdata
tracedmodules
typinganndata
xmltestdata
ziptestdata
__init__.py
__main__.py
_test_atexit.py
_test_eintr.py
_test_embed_set_config.py
_test_embed_structseq.py
_test_multiprocessing.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
_test_venv_multiprocessing.py
_typed_dict_helper.py
allsans.pem
audiotests.py
audit-tests.py gh-108294: Add error handling for time.sleep audit event (GH-108363) 2023-09-05 10:25:08 +02:00
autotest.py
bad_coding.py
bad_coding2.py
badcert.pem
badkey.pem
badsyntax_3131.py
badsyntax_future3.py
badsyntax_future4.py
badsyntax_future5.py
badsyntax_future6.py
badsyntax_future7.py
badsyntax_future8.py
badsyntax_future9.py
badsyntax_future10.py
badsyntax_pep3120.py
bisect_cmd.py
cfgparser.1
cfgparser.2
cfgparser.3
clinic.test.c
cmath_testcases.txt
coding20731.py
curses_tests.py
datetimetester.py gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
dis_module.py
doctest_aliases.py
doctest_lineno.py
double_const.py
empty.vbs
exception_hierarchy.txt
ffdh3072.pem
final_a.py
final_b.py
floating_points.txt
fork_wait.py
formatfloat_testcases.txt
future_test1.py
future_test2.py
gdb_sample.py
idnsans.pem
ieee754.txt
imp_dummy.py
inspect_fodder.py
inspect_fodder2.py
inspect_stock_annotations.py
inspect_stringized_annotations.py
inspect_stringized_annotations_2.py
keycert.passwd.pem
keycert.pem
keycert2.pem
keycert3.pem
keycert4.pem
keycertecc.pem
levenshtein_examples.json
list_tests.py GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507) 2023-09-08 09:48:28 +00:00
lock_tests.py
make_ssl_certs.py
mapping_tests.py GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507) 2023-09-08 09:48:28 +00:00
math_testcases.txt
memory_watchdog.py
mime.types
mock_socket.py
mod_generics_cache.py
mp_fork_bomb.py
mp_preload.py
multibytecodec_support.py
nokia.pem
nosan.pem
nullbytecert.pem
nullcert.pem
pickletester.py
profilee.py
pstats.pck
pycacert.pem
pycakey.pem
pyclbr_input.py
pydoc_mod.py
pydocfodder.py
pythoninfo.py GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507) 2023-09-08 09:48:28 +00:00
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
recursion.tar
regrtest.py
relimport.py
reperf.py
revocation.crl
sample_doctest.py
sample_doctest_no_docstrings.py
sample_doctest_no_doctests.py
secp384r1.pem
selfsigned_pythontestdotnet.pem
seq_tests.py
setuptools-67.6.1-py3-none-any.whl
shadowed_super.py
signalinterproctester.py
smtpd.py
sortperf.py
ssl_cert.pem
ssl_key.passwd.pem
ssl_key.pem
ssl_servers.py
ssltests.py
string_tests.py
talos-2019-0758.pem
test___all__.py
test___future__.py
test__locale.py
test__opcode.py
test__osx_support.py
test__xxinterpchannels.py
test__xxsubinterpreters.py
test_abc.py
test_abstract_numbers.py
test_argparse.py
test_array.py
test_asdl_parser.py
test_ast.py
test_asyncgen.py GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test (#109142) 2023-09-08 16:27:58 +00:00
test_atexit.py
test_audit.py gh-108294: Add error handling for time.sleep audit event (GH-108363) 2023-09-05 10:25:08 +02:00
test_augassign.py
test_base64.py
test_baseexception.py
test_bdb.py
test_bigaddrspace.py
test_bigmem.py
test_binascii.py gh-109140: Rename duplicated tests in `test_binascii` (#109141) 2023-09-08 15:30:28 +00:00
test_binop.py
test_bisect.py
test_bool.py
test_buffer.py
test_bufio.py
test_builtin.py
test_bytes.py
test_bz2.py
test_c_locale_coercion.py
test_calendar.py
test_call.py
test_charmapcodec.py
test_class.py
test_clinic.py
test_cmath.py
test_cmd.py
test_cmd_line.py
test_cmd_line_script.py
test_code.py gh-109052: Use the base opcode when comparing code objects (gh-109107) 2023-09-09 10:24:49 +09:00
test_code_module.py
test_codeccallbacks.py
test_codecencodings_cn.py
test_codecencodings_hk.py
test_codecencodings_iso2022.py
test_codecencodings_jp.py
test_codecencodings_kr.py
test_codecencodings_tw.py
test_codecmaps_cn.py
test_codecmaps_hk.py
test_codecmaps_jp.py
test_codecmaps_kr.py
test_codecmaps_tw.py
test_codecs.py
test_codeop.py
test_collections.py
test_colorsys.py
test_compare.py
test_compile.py GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507) 2023-09-08 09:48:28 +00:00
test_compileall.py
test_compiler_assemble.py
test_compiler_codegen.py
test_complex.py
test_configparser.py
test_contains.py
test_context.py
test_contextlib.py
test_contextlib_async.py
test_copy.py gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
test_copyreg.py
test_coroutines.py
test_cprofile.py
test_csv.py gh-109050: Remove remaining tests for legacy Unicode C API (GH-109068) 2023-09-09 05:44:46 +00:00
test_curses.py
test_datetime.py
test_dbm.py
test_dbm_dumb.py
test_dbm_gnu.py
test_dbm_ndbm.py
test_decimal.py gh-109050: Remove remaining tests for legacy Unicode C API (GH-109068) 2023-09-09 05:44:46 +00:00
test_decorators.py
test_defaultdict.py
test_deque.py
test_descr.py
test_descrtut.py
test_devpoll.py
test_dict.py GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507) 2023-09-08 09:48:28 +00:00
test_dict_version.py
test_dictcomps.py
test_dictviews.py GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507) 2023-09-08 09:48:28 +00:00
test_difflib.py
test_difflib_expect.html
test_dis.py GH-108614: Add `RESUME_CHECK` instruction (GH-108630) 2023-09-07 14:39:03 +01:00
test_doctest.py
test_doctest.txt
test_doctest2.py
test_doctest2.txt
test_doctest3.txt
test_doctest4.txt
test_docxmlrpc.py
test_dtrace.py
test_dynamic.py
test_dynamicclassattribute.py
test_eintr.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_embed.py gh-108753: Enhance pystats (#108754) 2023-09-06 15:54:59 +00:00
test_ensurepip.py
test_enum.py gh-109022: [Enum] require `names=()` to create empty enum type (GH-109048) 2023-09-07 18:19:03 -07:00
test_enumerate.py
test_eof.py
test_epoll.py
test_errno.py
test_except_star.py
test_exception_group.py GH-91079: Rename C_RECURSION_LIMIT to Py_C_RECURSION_LIMIT (#108507) 2023-09-08 09:48:28 +00:00
test_exception_hierarchy.py
test_exception_variations.py
test_exceptions.py
test_extcall.py
test_faulthandler.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_fcntl.py
test_file.py
test_file_eintr.py
test_filecmp.py
test_fileinput.py
test_fileio.py
test_fileutils.py
test_finalization.py
test_float.py
test_flufl.py
test_fnmatch.py
test_fork1.py
test_format.py
test_fractions.py
test_frame.py
test_frozen.py
test_fstring.py gh-109114: Relax the check for invalid lambdas inside f-strings to avoid false positives (#109121) 2023-09-08 17:00:23 +00:00
test_ftplib.py
test_funcattrs.py
test_functools.py
test_future.py
test_future3.py
test_future4.py
test_future5.py
test_gc.py
test_gdb.py gh-91960: Skip test_gdb if gdb cannot retrive Python frames (#108999) 2023-09-06 14:34:35 +00:00
test_generated_cases.py gh-103186: Make test_generated_cases less noisy by default (GH-109100) 2023-09-07 20:53:38 +03:00
test_generator_stop.py
test_generators.py
test_genericalias.py
test_genericclass.py
test_genericpath.py
test_genexps.py
test_getopt.py gh-89392: Use unittest test runner for doctests in test_getopt (GH-108916) 2023-09-05 17:35:28 +03:00
test_getpass.py
test_getpath.py
test_gettext.py
test_glob.py
test_global.py
test_grammar.py gh-88943: Improve syntax error for non-ASCII character that follows a numerical literal (GH-109081) 2023-09-07 17:00:13 +03:00
test_graphlib.py
test_grp.py
test_gzip.py
test_hash.py
test_hashlib.py
test_heapq.py
test_hmac.py
test_html.py
test_htmlparser.py
test_http_cookiejar.py
test_http_cookies.py
test_httplib.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_httpservers.py
test_idle.py
test_imaplib.py gh-109015: Add test.support.socket_helper.tcp_blackhole() (#109016) 2023-09-07 01:58:03 +02:00
test_index.py
test_inspect.py gh-108751: Add copy.replace() function (GH-108752) 2023-09-06 23:55:42 +03:00
test_int.py
test_int_literal.py
test_interpreters.py
test_io.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_ioctl.py
test_ipaddress.py
test_isinstance.py
test_iter.py
test_iterlen.py
test_itertools.py
test_keyword.py
test_keywordonlyarg.py
test_kqueue.py
test_largefile.py
test_launcher.py
test_linecache.py
test_list.py
test_listcomps.py gh-108732: include comprehension locals in frame.f_locals (#109026) 2023-09-07 08:56:43 -06:00
test_lltrace.py
test_locale.py
test_logging.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_long.py
test_longexp.py
test_lzma.py
test_mailbox.py
test_marshal.py
test_math.py
test_math_property.py
test_memoryio.py
test_memoryview.py
test_metaclass.py
test_mimetypes.py
test_minidom.py
test_mmap.py
test_modulefinder.py
test_monitoring.py gh-107265: Remove all ENTER_EXECUTOR when execute _Py_Instrument (gh-108539) 2023-09-07 09:53:54 +09:00
test_msvcrt.py gh-108996: Skip broken test_msvcrt for now (#109169) 2023-09-08 23:56:53 +00:00
test_multibytecodec.py
test_multiprocessing_main_handling.py
test_named_expressions.py
test_netrc.py gh-89392: Remove test_main() in test_netrc (GH-108860) 2023-09-04 12:41:13 +03:00
test_ntpath.py
test_numeric_tower.py
test_opcache.py
test_opcodes.py
test_openpty.py
test_operator.py
test_optparse.py
test_ordered_dict.py
test_os.py
test_osx_env.py
test_pathlib.py
test_patma.py
test_pdb.py gh-106670: Fix Pdb handling of chained Exceptions with no stacks. (#108865) 2023-09-06 09:41:56 +00:00
test_peepholer.py
test_pep646_syntax.py gh-89392: Fix running test_pep646_syntax as script (GH-108875) 2023-09-04 15:24:03 +03:00
test_perf_profiler.py
test_perfmaps.py
test_pickle.py
test_picklebuffer.py
test_pickletools.py
test_pkg.py
test_pkgutil.py
test_platform.py
test_plistlib.py
test_poll.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_popen.py
test_poplib.py
test_positional_only_arg.py
test_posix.py
test_posixpath.py
test_pow.py
test_pprint.py
test_print.py
test_profile.py
test_property.py
test_pstats.py
test_pty.py
test_pulldom.py
test_pwd.py
test_py_compile.py
test_pyclbr.py
test_pydoc.py
test_pyexpat.py
test_queue.py
test_quopri.py
test_raise.py
test_random.py
test_range.py
test_re.py
test_readline.py
test_regrtest.py gh-109162: libregrtest: fix _decode_worker_job() (#109202) 2023-09-10 00:51:24 +02:00
test_repl.py
test_reprlib.py
test_resource.py
test_richcmp.py
test_rlcompleter.py
test_robotparser.py
test_runpy.py
test_sax.py
test_sched.py
test_scope.py
test_script_helper.py
test_secrets.py
test_select.py
test_selectors.py
test_set.py
test_setcomps.py
test_shelve.py
test_shlex.py
test_shutil.py
test_signal.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_site.py
test_slice.py
test_smtplib.py
test_smtpnet.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_socket.py gh-109015: Add test.support.socket_helper.tcp_blackhole() (#109016) 2023-09-07 01:58:03 +02:00
test_socketserver.py
test_sort.py
test_source_encoding.py
test_ssl.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_stable_abi_ctypes.py
test_startfile.py
test_stat.py
test_statistics.py Use unittest test runner for doctests in test_statistics (GH-108921) 2023-09-07 23:08:55 +03:00
test_str.py gh-109050: Remove remaining tests for legacy Unicode C API (GH-109068) 2023-09-09 05:44:46 +00:00
test_strftime.py
test_string.py
test_string_literals.py
test_stringprep.py
test_strptime.py
test_strtod.py
test_struct.py
test_structseq.py
test_subclassinit.py
test_subprocess.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_sundry.py
test_super.py
test_support.py gh-109162: libregrtest: remove WorkerJob class (#109204) 2023-09-10 01:41:21 +02:00
test_symtable.py
test_syntax.py
test_sys.py gh-108753: Enhance pystats (#108754) 2023-09-06 15:54:59 +00:00
test_sys_setprofile.py
test_sys_settrace.py gh-109094: remove unnecessary updates of frame->prev_instr in instrumentation functions (#109076) 2023-09-07 18:23:11 +01:00
test_sysconfig.py
test_syslog.py
test_tabnanny.py
test_tarfile.py gh-107902: Don't test setting suid/sgid on systems that don't support them (GH-108368) 2023-09-04 15:46:00 +02:00
test_tcl.py
test_tempfile.py gh-108962: Skip test_tempfile.test_flags() if not supported (#108964) 2023-09-05 21:59:40 +00:00
test_textwrap.py
test_thread.py
test_threadedtempfile.py
test_threading.py
test_threading_local.py
test_threadsignals.py
test_time.py
test_timeit.py
test_timeout.py gh-75743: Restore test_timeout.testConnectTimeout() (#109087) 2023-09-07 20:13:32 +02:00
test_tokenize.py gh-108469: Update ast.unparse for unescaped quote support from PEP701 [3.12] (#108553) 2023-09-05 21:01:23 +01:00
test_trace.py gh-68403: Fix test_coverage in test_trace (GH-108910) 2023-09-07 21:28:18 +03:00
test_traceback.py gh-106922: Fix error location for constructs with spaces and parentheses (#108959) 2023-09-08 17:18:35 +01:00
test_tracemalloc.py
test_ttk_textonly.py
test_tuple.py
test_turtle.py
test_type_aliases.py
test_type_annotations.py
test_type_cache.py gh-89392: Use normal unittest runner in test_type_cache (GH-108911) 2023-09-05 13:46:17 +00:00
test_type_comments.py
test_type_params.py gh-109118: Fix runtime crash when NameError happens in PEP 695 function (#109123) 2023-09-09 02:49:20 +00:00
test_typechecks.py
test_types.py
test_typing.py
test_ucn.py
test_unary.py
test_unicode_file.py
test_unicode_file_functions.py
test_unicode_identifiers.py
test_unicodedata.py
test_univnewlines.py
test_unpack.py
test_unpack_ex.py
test_unparse.py gh-108469: Update ast.unparse for unescaped quote support from PEP701 [3.12] (#108553) 2023-09-05 21:01:23 +01:00
test_urllib.py
test_urllib2.py
test_urllib2_localnet.py
test_urllib2net.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_urllib_response.py
test_urllibnet.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_urlparse.py
test_userdict.py
test_userlist.py
test_userstring.py
test_utf8_mode.py
test_utf8source.py
test_uuid.py
test_venv.py
test_wait3.py
test_wait4.py
test_wave.py
test_weakref.py
test_weakset.py
test_webbrowser.py
test_winconsoleio.py
test_winreg.py
test_winsound.py
test_with.py
test_wmi.py
test_wsgiref.py
test_xml_dom_minicompat.py
test_xml_etree.py bpo-45229: Make ElementTree tests discoverable (GH-108859) 2023-09-04 13:04:32 +03:00
test_xml_etree_c.py bpo-45229: Make ElementTree tests discoverable (GH-108859) 2023-09-04 13:04:32 +03:00
test_xmlrpc.py gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) 2023-09-05 17:56:30 +03:00
test_xxlimited.py
test_xxtestfuzz.py
test_yield_from.py
test_zipapp.py
test_zipfile64.py
test_zipimport.py
test_zipimport_support.py
test_zlib.py
testcodec.py
testtar.tar
testtar.tar.xz
tf_inherit_check.py
time_hashlib.py
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
tokenize_tests.txt
wheel-0.40.0-py3-none-any.whl
win_console_handler.py
xmltests.py
zip_cp437_header.zip
zipdir.zip