cpython/Lib/test
Miss Islington (bot) 061abf8e4c
[3.13] GH-89727: Partially fix shutil.rmtree() recursion error on deep trees (GH-119634) (#119748)
GH-89727: Partially fix `shutil.rmtree()` recursion error on deep trees (GH-119634)

Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented
without recursion.

`shutil._rmtree_safe_fd()` is not affected and can still raise a recursion
error.

(cherry picked from commit a150679f90)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-05-29 20:41:03 +00:00
..
archivetestdata
audiodata
certdata
cjkencodings
configdata
crashers
data
decimaltestdata
dtracedata
encoded_modules
leakers
libregrtest [3.13] gh-119050: Add XML support to libregrtest refleak checker (GH-119148) (#119270) 2024-05-20 22:50:20 +00:00
mathdata
regrtestdata/import_from_tests
subprocessdata
support gh-118527: Intern code consts in free-threaded build (#118667) 2024-05-06 20:12:39 -04:00
test_asyncio [3.13] gh-119121: Fix and test async.staggered.staggered_race (GH-119173) (#119206) 2024-05-20 11:31:31 +00:00
test_capi [3.13] gh-119213: Be More Careful About _PyArg_Parser.kwtuple Across Interpreters (gh-119331) (gh-119410) 2024-05-22 12:09:48 -06:00
test_cext
test_concurrent_futures
test_cppext
test_ctypes [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_dataclasses [3.13] gh-119581: Add a test of InitVar with name shadowing (GH-119582) (#119672) 2024-05-28 17:41:02 +00:00
test_doctest
test_email [3.13] gh-118643: Fix AttributeError in the email module (GH-119099) (GH-119389) 2024-05-22 14:07:38 +03:00
test_free_threading [3.13] gh-119247: Add macros to use PySequence_Fast safely in free-threaded build (GH-119315) (#119419) 2024-05-22 19:24:02 +00:00
test_future_stmt [3.13] gh-116860: Remove outdated test_parserhack from test_future (GH-116861) (#119649) 2024-05-28 09:55:37 +00:00
test_gdb
test_import [3.13] gh-119584: Fix test_import Failed Assertion (gh-119623) (gh-119633) 2024-05-27 20:04:13 +00:00
test_importlib [3.13] gh-118727: Don't drop the GIL in drop_gil() unless the current thread holds it (GH-118745) (#119474) 2024-05-23 21:27:38 +00:00
test_inspect [3.13] gh-87106: Fix inspect.signature.bind() handling of positional-only arguments with **kwargs (GH-103404) (#118985) 2024-05-13 08:35:31 +00:00
test_interpreters gh-117953: Always Run Extension Init Func in Main Interpreter First (gh-118157) 2024-05-07 04:21:51 +00:00
test_json
test_module [3.13] gh-118846: Fix free-threading test failures when run sequentially (GH-118864) (#118927) 2024-05-10 20:50:59 +00:00
test_multiprocessing_fork
test_multiprocessing_forkserver
test_multiprocessing_spawn
test_pathlib [3.13] GH-119113: Raise TypeError from pathlib.PurePath.with_suffix(None) (GH-119124) (#119183) 2024-05-19 16:27:12 +00:00
test_peg_generator
test_pydoc
test_pyrepl [3.13] gh-119555: catch SyntaxError from compile() in the InteractiveColoredConsole (GH-119557) (#119709) 2024-05-29 12:04:45 +01:00
test_sqlite3
test_tkinter [3.13] Add Tkinter tests for different events (GH-118778) (GH-119091) 2024-05-16 13:17:19 +03:00
test_tomllib
test_tools
test_ttk
test_unittest
test_warnings
test_zipfile [3.13] Re-order imports to align with zipp 3.18.2 (GH-119587) (#119589) 2024-05-28 08:49:13 -04:00
test_zoneinfo [3.13] gh-118846: Fix free-threading test failures when run sequentially (GH-118864) (#118927) 2024-05-10 20:50:59 +00:00
tkinterdata
tokenizedata
tracedmodules
typinganndata
wheeldata
xmltestdata
zipimport_data gh-118107: Fix zipimporter ZIP64 handling. (GH-118108) 2024-05-07 09:23:27 +02:00
.ruff.toml
__init__.py
__main__.py
_test_atexit.py
_test_eintr.py
_test_embed_set_config.py
_test_embed_structseq.py
_test_monitoring_shutdown.py
_test_multiprocessing.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
_test_venv_multiprocessing.py
archiver_tests.py
audiotests.py
audit-tests.py
autotest.py
bisect_cmd.py
clinic.test.c
cov.py
curses_tests.py
datetimetester.py [3.13] gh-117398: Revert gh-119636, Add multiphase support to _datetime (#119639) 2024-05-28 00:52:52 +00:00
dis_module.py
empty.vbs
exception_hierarchy.txt
fork_wait.py
levenshtein_examples.json
list_tests.py
lock_tests.py
mapping_tests.py
memory_watchdog.py
mime.types
mock_socket.py
mp_fork_bomb.py
mp_preload.py
multibytecodec_support.py
pickletester.py
profilee.py
pstats.pck
pyclbr_input.py
pythoninfo.py [3.13] gh-119132: Log sys._is_gil_enabled() in test.pythoninfo (GH-119140) (#119143) 2024-05-18 13:46:21 +00:00
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
regrtest.py
relimport.py
reperf.py
seq_tests.py [3.13] gh-118846: Fix free-threading test failures when run sequentially (GH-118864) (#118927) 2024-05-10 20:50:59 +00:00
signalinterproctester.py
ssl_servers.py
ssltests.py
string_tests.py
test___all__.py
test__colorize.py
test__interpchannels.py
test__interpreters.py
test__locale.py
test__opcode.py
test__osx_support.py
test_abc.py
test_abstract_numbers.py
test_android.py
test_argparse.py gh-62090: Simplify argparse usage formatting (GH-105039) 2024-05-07 09:28:51 +02:00
test_array.py
test_asdl_parser.py
test_ast.py [3.13] gh-118851: Default ctx arguments to AST constructors to Load() (GH-118854) (#118871) 2024-05-09 22:52:42 +00:00
test_asyncgen.py GH-117714: implement athrow().close() and asend().close() using throw (GH-117906) 2024-05-06 17:13:15 +00:00
test_atexit.py
test_audit.py
test_augassign.py
test_base64.py
test_baseexception.py
test_bdb.py
test_bigaddrspace.py
test_bigmem.py
test_binascii.py gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320) 2024-05-07 11:18:45 +02:00
test_binop.py
test_bisect.py
test_bool.py
test_buffer.py
test_bufio.py
test_builtin.py [3.13] gh-118899: Add tests for NotImplemented attribute access (GH-118902) (#118968) 2024-05-12 14:23:45 +00:00
test_bytes.py
test_bz2.py
test_c_locale_coercion.py
test_calendar.py
test_call.py
test_charmapcodec.py
test_class.py gh-118362: Fix thread safety around lookups from the type cache in the face of concurrent mutators (#118454) 2024-05-06 10:50:35 -07:00
test_clinic.py
test_cmath.py
test_cmd.py
test_cmd_line.py
test_cmd_line_script.py
test_code.py gh-118527: Intern code consts in free-threaded build (#118667) 2024-05-06 20:12:39 -04: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
test_compileall.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_compiler_assemble.py
test_compiler_codegen.py
test_complex.py
test_configparser.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_contains.py
test_context.py
test_contextlib.py
test_contextlib_async.py
test_copy.py
test_copyreg.py
test_coroutines.py
test_cprofile.py
test_csv.py
test_curses.py
test_datetime.py
test_dbm.py
test_dbm_dumb.py
test_dbm_gnu.py
test_dbm_ndbm.py
test_dbm_sqlite3.py
test_decimal.py
test_decorators.py
test_defaultdict.py
test_deque.py
test_descr.py [3.13] gh-118846: Fix free-threading test failures when run sequentially (GH-118864) (#118927) 2024-05-10 20:50:59 +00:00
test_descrtut.py
test_devpoll.py
test_dict.py
test_dict_version.py
test_dictcomps.py
test_dictviews.py
test_difflib.py
test_difflib_expect.html
test_dis.py
test_docxmlrpc.py
test_dtrace.py
test_dynamic.py
test_dynamicclassattribute.py
test_eintr.py
test_embed.py
test_ensurepip.py
test_enum.py
test_enumerate.py
test_eof.py
test_epoll.py
test_errno.py
test_except_star.py
test_exception_group.py
test_exception_hierarchy.py
test_exception_variations.py
test_exceptions.py
test_extcall.py
test_external_inspection.py
test_faulthandler.py
test_fcntl.py
test_file.py
test_file_eintr.py
test_filecmp.py
test_fileinput.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
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 [3.13] gh-119189: Add yet more tests for mixed Fraction arithmetic (GH-119298) (GH-119346) 2024-05-22 09:37:07 +00:00
test_frame.py [3.13] gh-118921: Add copy() method for FrameLocalsProxy (GH-118923) (#118933) 2024-05-10 23:15:54 +00:00
test_frozen.py
test_fstring.py
test_ftplib.py
test_funcattrs.py
test_functools.py [3.13] gh-119011: type.__type_params__ now return an empty tuple (GH-119296) (#119678) 2024-05-28 19:09:04 +00:00
test_gc.py [3.13] gh-118846: Fix free-threading test failures when run sequentially (GH-118864) (#118927) 2024-05-10 20:50:59 +00:00
test_generated_cases.py
test_generator_stop.py
test_generators.py
test_genericalias.py gh-110209: Add __class_getitem__ for generator and coroutine (#110212) 2024-05-06 18:41:32 -07:00
test_genericclass.py
test_genericpath.py gh-118507 : Refactor nt._path_is* to improve applicability for other cases (GH-118755) 2024-05-22 00:29:34 +00:00
test_genexps.py
test_getopt.py
test_getpass.py
test_getpath.py
test_gettext.py
test_glob.py
test_global.py
test_grammar.py
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 [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_http_cookies.py
test_httplib.py
test_httpservers.py
test_idle.py
test_imaplib.py
test_index.py
test_int.py gh-118610: Centralize power caching in _pylong.py (#118611) 2024-05-07 19:09:09 -05:00
test_int_literal.py
test_io.py
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 gh-119070: Fix py.exe handling of /usr/bin/env commands missing extension (GH-119426) 2024-05-29 20:06:38 +00:00
test_linecache.py
test_list.py
test_listcomps.py
test_lltrace.py
test_locale.py
test_logging.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_long.py [3.13] GH-117195: Avoid assertion error in object.__sizeof__ (GH-117220) (GH-119456) 2024-05-23 16:58:34 +01:00
test_longexp.py
test_lzma.py
test_mailbox.py
test_marshal.py
test_math.py gh-118671: Updated dead ActiveState links (#118730) 2024-05-08 01:06:38 -06:00
test_math_property.py
test_memoryio.py gh-118527: Intern code consts in free-threaded build (#118667) 2024-05-06 20:12:39 -04:00
test_memoryview.py
test_metaclass.py
test_mimetypes.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_minidom.py
test_mmap.py gh-118209: Add Windows structured exception handling to mmap module (GH-118213) 2024-05-10 12:00:00 +01:00
test_modulefinder.py
test_monitoring.py [3.13] gh-118692: Avoid creating unnecessary StopIteration instances for monitoring (GH-119216) (#119497) 2024-05-24 10:18:13 +00:00
test_msvcrt.py
test_multibytecodec.py
test_multiprocessing_main_handling.py
test_named_expressions.py
test_netrc.py
test_ntpath.py gh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule (GH-118355) 2024-05-24 18:26:06 +00:00
test_numeric_tower.py
test_opcache.py
test_opcodes.py
test_openpty.py
test_operator.py
test_optimizer.py
test_optparse.py
test_ordered_dict.py [3.13] gh-118846: Fix PGO tests in free-threaded build (GH-118862) (#118867) 2024-05-09 20:34:22 +00:00
test_os.py gh-118486: Simplify test_win32_mkdir_700 to check the exact ACL (GH-119056) 2024-05-15 11:21:27 +00:00
test_osx_env.py
test_patma.py
test_pdb.py [3.13] gh-58933: Make pdb return to caller frame correctly when f_trace is not set (GH-118979) (#119007) 2024-05-13 20:18:03 +01:00
test_peepholer.py
test_pep646_syntax.py
test_perf_profiler.py gh-118518: Check for perf version and not kernel version in test_perf_profiler (#118640) 2024-05-07 20:41:07 +01:00
test_perfmaps.py
test_pickle.py
test_picklebuffer.py
test_pickletools.py
test_pkg.py
test_pkgutil.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_platform.py
test_plistlib.py
test_poll.py
test_popen.py
test_poplib.py
test_positional_only_arg.py
test_posix.py
test_posixpath.py gh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule (GH-118355) 2024-05-24 18:26:06 +00:00
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_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 [3.13] gh-119050: Add XML support to libregrtest refleak checker (GH-119148) (#119270) 2024-05-20 22:50:20 +00:00
test_repl.py [3.13] gh-118817: Fix asyncio REPL on Windows (GH-118819) (#118847) 2024-05-09 15:47:31 +00:00
test_reprlib.py
test_resource.py
test_richcmp.py
test_rlcompleter.py
test_robotparser.py
test_runpy.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
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 [3.13] GH-89727: Partially fix shutil.rmtree() recursion error on deep trees (GH-119634) (#119748) 2024-05-29 20:41:03 +00:00
test_signal.py
test_site.py
test_slice.py
test_smtplib.py
test_smtpnet.py
test_socket.py [3.13] gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465) (#119479) 2024-05-23 22:27:04 +00:00
test_socketserver.py
test_sort.py
test_source_encoding.py
test_ssl.py
test_stable_abi_ctypes.py
test_startfile.py
test_stat.py
test_statistics.py [3.13] [tests]: Mark `test_statistics.test_kde_random with a requires_resource('cpu')` decorator (GH-118801) (#118818) 2024-05-09 08:43:03 +00:00
test_str.py
test_strftime.py
test_string.py
test_string_literals.py
test_stringprep.py
test_strptime.py [3.13] gh-117655: Prevent test_strptime from raising a DeprecationWarning (GH-117668) (GH-118956) 2024-05-11 22:18:23 +00:00
test_strtod.py
test_struct.py [3.13] gh-118846: Fix PGO tests in free-threaded build (GH-118862) (#118867) 2024-05-09 20:34:22 +00:00
test_structseq.py
test_subclassinit.py
test_subprocess.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_sundry.py
test_super.py
test_support.py
test_symtable.py
test_syntax.py gh-118090: Improve error message for empty type param brackets (GH-118091) 2024-05-07 14:01:06 +02:00
test_sys.py gh-118473: Fix set_asyncgen_hooks not to be partially set when arguments are invalid (#118474) 2024-05-06 17:02:52 -07:00
test_sys_setprofile.py
test_sys_settrace.py
test_sysconfig.py
test_syslog.py
test_tabnanny.py
test_tarfile.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_tcl.py gh-66410: Do not stringify arguments of Tkinter callback (GH-98592) 2024-05-07 12:07:32 +00:00
test_tempfile.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_termios.py
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
test_tokenize.py
test_trace.py [3.13] gh-118846: Fix free-threading test failures when run sequentially (GH-118864) (#118927) 2024-05-10 20:50:59 +00:00
test_traceback.py [3.13] gh-118893: Evaluate all statements in the new REPL separately (GH-119318) (#119408) 2024-05-22 16:22:01 +00:00
test_tracemalloc.py
test_ttk_textonly.py
test_tty.py
test_tuple.py
test_turtle.py
test_type_aliases.py
test_type_annotations.py
test_type_cache.py
test_type_comments.py
test_type_params.py [3.13] gh-119011: type.__type_params__ now return an empty tuple (GH-119296) (#119678) 2024-05-28 19:09:04 +00:00
test_typechecks.py
test_types.py
test_typing.py [3.13] typing tests: remove some unnecessary uses of exec() (GH-119005) (#119038) 2024-05-14 14:39:55 +00:00
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
test_urllib.py
test_urllib2.py
test_urllib2_localnet.py
test_urllib2net.py
test_urllib_response.py
test_urllibnet.py
test_urlparse.py [3.13] Add yet few cases for urlparse/urlunparse roundtrip tests (GH-119031) (GH-119037) 2024-05-14 14:23:40 +00:00
test_userdict.py
test_userlist.py
test_userstring.py
test_utf8_mode.py
test_utf8source.py
test_uuid.py
test_venv.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_wait3.py
test_wait4.py
test_wave.py
test_weakref.py
test_weakset.py
test_webbrowser.py
test_winapi.py
test_winconsoleio.py
test_winreg.py
test_winsound.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_with.py
test_wmi.py
test_wsgiref.py
test_xml_dom_minicompat.py
test_xml_etree.py
test_xml_etree_c.py
test_xmlrpc.py
test_xxlimited.py
test_xxtestfuzz.py
test_yield_from.py
test_zipapp.py [3.13] gh-119064: Use os_helper.FakePath instead of pathlib.Path in tests (GH-119065) (GH-119087) 2024-05-16 10:51:18 +03:00
test_zipfile64.py
test_zipimport.py gh-118107: Fix zipimporter ZIP64 handling. (GH-118108) 2024-05-07 09:23:27 +02:00
test_zipimport_support.py
test_zlib.py
testcodec.py
tf_inherit_check.py
win_console_handler.py
xmltests.py