cpython/Lib/test
Miss Islington (bot) c21a36112a
[3.13] gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload. (GH-122493) (#122504)
gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload. (GH-122493)

(cherry picked from commit f071f01b7b)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2024-07-31 08:48:59 +00:00
..
archivetestdata
audiodata
certdata
cjkencodings
configdata
crashers [3.13] gh-108297: Update crashers README for test_crashers removal (#121476) 2024-07-08 16:54:51 +10:00
data
decimaltestdata
dtracedata
encoded_modules
leakers
libregrtest [3.13] gh-122420: Fix accounting for immortal interned strings in refleak.py (GH-122421) (GH-122430) 2024-07-30 09:36:08 +02:00
mathdata
regrtestdata/import_from_tests
subprocessdata
support [3.13] gh-117482: Fix the Slot Wrapper Inheritance Tests (gh-122249) 2024-07-29 10:25:02 -06:00
test_ast [3.13] gh-122292: Split up ``Lib/test/test_ast.py`` into a couple of … (#122393) 2024-07-29 16:16:46 +02:00
test_asyncio [3.13] gh-122332: Fix missing `NULL` check in `asyncio.Task.get_coro` (GH-122338) (#122344) 2024-07-27 12:36:50 +05:30
test_capi [3.13] Refactor test_capi.test_long (GH-122113) (GH-122137) 2024-07-23 10:01:13 +03:00
test_cext
test_concurrent_futures [3.13] gh-117657: Skip test when running under TSan (GH-121549) (GH-121553) 2024-07-09 21:37:30 +00:00
test_cppext
test_ctypes [3.13] gh-105733: Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it. (GH-122281) (GH-122440) 2024-07-30 08:05:09 +00:00
test_dataclasses
test_doctest
test_email [3.13] gh-120930: Remove extra blank occuring in wrapped encoded words in email headers (GH-121747) (GH-121963) 2024-07-19 19:21:53 +02:00
test_free_threading [3.13] gh-120317: Lock around global state in the tokenize module (GH-120318) (#121841) 2024-07-16 10:03:47 +00:00
test_future_stmt
test_gdb
test_import [3.13] gh-121110: Fix Extension Module Tests Under Py_TRACE_REFS Builds (gh-121517) 2024-07-08 21:34:58 +00:00
test_importlib [3.13] gh-121279: Fix importlib DeprecatedAttrsTests (#121319) 2024-07-03 13:57:05 +02:00
test_inspect [3.13] gh-122087: Restore ismethoddescriptor() and isroutine() for partial objects (GH-122218) 2024-07-25 10:11:47 +03:00
test_interpreters [3.13] gh-76785: Expand How Interpreter Channels Handle Interpreter Finalization (gh-121811) 2024-07-15 20:15:47 +00:00
test_json
test_module
test_multiprocessing_fork [3.13] gh-117657: Skip test when running under TSan (GH-121549) (GH-121553) 2024-07-09 21:37:30 +00:00
test_multiprocessing_forkserver
test_multiprocessing_spawn
test_pathlib
test_peg_generator
test_pydoc
test_pyrepl [3.13] gh-121973: Fix flaky test_pyrepl tests (GH-122140) (GH-122173) 2024-07-23 15:57:24 +02:00
test_sqlite3
test_tkinter [3.13] gh-119614: Fix truncation of strings with embedded null characters in Tkinter (GH-120909) (GH-120938) 2024-06-24 09:45:45 +00:00
test_tomllib
test_tools
test_ttk [3.13] gh-120873: Add tests for new widget options in Tk 8.7 (GH-120877) (GH-120879) 2024-06-22 13:43:30 +00:00
test_unittest [3.13] gh-121708: Improve test coverage for `unittest.util` (GH-121713) (GH-121738) 2024-07-14 08:32:41 +00:00
test_warnings [3.13] gh-122191: Fix test_warnings failure if run with -Werror (GH-122222) (GH-122256) 2024-07-25 07:28:33 +00:00
test_zipfile
test_zoneinfo
tkinterdata
tokenizedata
tracedmodules
typinganndata [3.13] gh-114053: Fix another edge case involving `get_type_hints`, PEP 695 and PEP 563 (GH-120272) (#121003) 2024-06-25 16:30:08 +00:00
wheeldata
xmltestdata
zipimport_data
.ruff.toml
__init__.py
__main__.py
_test_atexit.py
_test_eintr.py [3.13] gh-107851: Fix spurious failures in fcntl eintr tests (GH-121556) (#121585) 2024-07-10 15:02:26 +00:00
_test_embed_set_config.py
_test_embed_structseq.py
_test_monitoring_shutdown.py
_test_multiprocessing.py [3.13] gh-120012: clarify the behaviour of `multiprocessing.Queue.empty` on closed queues. (GH-120102) (#120469) 2024-07-14 04:24:58 -06:00
_test_venv_multiprocessing.py
archiver_tests.py
audiotests.py
audit-tests.py
autotest.py
bisect_cmd.py
clinic.test.c [3.13] gh-113993: Allow interned strings to be mortal, and fix related issues (GH-120520) (GH-120945) 2024-06-24 20:24:19 +02:00
cov.py
curses_tests.py
datetimetester.py Revert "[3.13] gh-120713: Normalize year with century for datetime.strftime (GH-120820) (GH-121144)" (GH-122408) 2024-07-29 21:55:28 +03:00
dis_module.py
empty.vbs
exception_hierarchy.txt [3.13] gh-119521: Remove _IncompleteInputError from the docs (GH-120993) (GH-121076) 2024-06-27 15:19:20 +02:00
fork_wait.py
levenshtein_examples.json
list_tests.py [3.13] gh-120384: Fix array-out-of-bounds crash in `list_ass_subscript` (GH-120442) (#120826) 2024-06-21 11:16:24 +00:00
lock_tests.py [3.13] gh-121474: Add threading.Barrier parties arg sanity check. (GH-121480) (GH-122444) 2024-07-30 09:24:35 +00:00
mapping_tests.py
memory_watchdog.py
mime.types
mock_socket.py
mp_fork_bomb.py
mp_preload.py
multibytecodec_support.py
pickletester.py [3.13] gh-122311: Fix some error messages in pickle (GH-122386) (GH-122387) 2024-07-29 12:27:14 +03:00
profilee.py
pstats.pck
pyclbr_input.py [3.13] gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450) (GH-120700) 2024-06-19 09:20:09 +02:00
pythoninfo.py
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
regrtest.py
relimport.py
reperf.py
seq_tests.py
signalinterproctester.py
ssl_servers.py
ssltests.py
string_tests.py
test___all__.py
test__colorize.py
test__interpchannels.py [3.13] gh-76785: Expand How Interpreter Channels Handle Interpreter Finalization (gh-121811) 2024-07-15 20:15:47 +00:00
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 [3.13] gh-121018: Fix more cases of exiting in argparse when exit_on_error=False (GH-121056) (GH-121128) 2024-06-28 15:04:44 +00:00
test_array.py [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
test_asdl_parser.py
test_asyncgen.py
test_atexit.py
test_audit.py [3.13] gh-120373: Mark test_audit.test_http as requiring the network resource (GH-120374) (#120948) 2024-06-24 13:44:06 +00:00
test_augassign.py
test_base64.py
test_baseexception.py [3.13] gh-119521: Remove _IncompleteInputError from the docs (GH-120993) (GH-121076) 2024-06-27 15:19:20 +02:00
test_bdb.py
test_bigaddrspace.py
test_bigmem.py
test_binascii.py
test_binop.py
test_bisect.py
test_bool.py
test_buffer.py
test_bufio.py
test_builtin.py [3.13] gh-116402: Avoid readline in test_builtin TTY input tests (GH-122447) (GH-122472) 2024-07-30 17:21:17 +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 [3.13] gh-121860: Fix crash when materializing managed dict (GH-121866) (#121867) 2024-07-16 19:26:01 +00:00
test_clinic.py [3.13] gh-113993: Allow interned strings to be mortal, and fix related issues (GH-120520) (GH-120945) 2024-06-24 20:24:19 +02:00
test_cmath.py
test_cmd.py
test_cmd_line.py
test_cmd_line_script.py
test_code.py
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 [3.13] gh-120722: Set position on RETURN_VALUE in lambda (GH-120724) (#120738) 2024-06-19 13:22:21 +00:00
test_compileall.py
test_compiler_assemble.py
test_compiler_codegen.py
test_complex.py [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
test_configparser.py
test_contains.py
test_context.py
test_contextlib.py
test_contextlib_async.py
test_copy.py [3.13] gh-121300: Add `replace` to `copy.__all__` (GH-121302) (#121337) 2024-07-03 15:28:57 +00:00
test_copyreg.py
test_coroutines.py
test_cprofile.py [3.13] gh-120289: Disallow disable() and clear() in external timer to prevent use-after-free (GH-120297) (#121984) 2024-07-18 13:26:47 -07:00
test_csv.py [3.13] gh-113785: csv: fields starting with escapechar are not quoted (GH-122110) (GH-122258) 2024-07-25 07:29:36 +00:00
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
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 [3.13] gh-117482: Fix the Slot Wrapper Inheritance Tests (gh-122249) 2024-07-29 10:25:02 -06:00
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 [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
test_fcntl.py
test_file.py
test_file_eintr.py
test_filecmp.py [3.13] gh-122400: Handle ValueError in filecmp (GH-122401) (GH-122441) 2024-07-30 09:17:35 +00:00
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 [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
test_fractions.py [3.13] gh-119189: Fix the power operator for Fraction (GH-119242) (GH-119836) 2024-07-16 10:44:23 +03:00
test_frame.py
test_frozen.py
test_fstring.py [3.13] gh-122026: Fix identification of mismatched parentheses inside f-strings (GH-122028) (#122041) 2024-07-19 17:32:34 +00:00
test_ftplib.py
test_funcattrs.py
test_functools.py [3.13] gh-121027: Add a future warning in functools.partial.__get__ (GH-121086) (#121092) 2024-06-27 12:13:01 +00:00
test_gc.py
test_generated_cases.py [3.13] GH-122155: Fix cases generator to correctly compute 'peek' offset for error handling (GH-122158) (GH-122174) 2024-07-26 10:51:42 +01:00
test_generator_stop.py
test_generators.py [3.13] gh-121657: Additional `yield from` error test using lambda (GH-121722) (GH-121961) 2024-07-19 13:50:34 +02:00
test_genericalias.py
test_genericclass.py
test_genericpath.py
test_genexps.py
test_getopt.py
test_getpass.py
test_getpath.py [3.13] gh-121103: Put free-threaded libraries in `lib/python3.14t` (GH-121293) (#121631) 2024-07-11 21:00:28 +00:00
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
test_http_cookies.py
test_httplib.py
test_httpservers.py
test_idle.py
test_imaplib.py
test_index.py
test_int.py
test_int_literal.py
test_io.py [3.13] gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507) (#119964) 2024-06-19 10:11:07 +00: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 [3.13] GH-120754: Add more tests around seek + readall (GH-122103) (#122215) 2024-07-24 06:44:41 +00:00
test_launcher.py
test_linecache.py [3.13] gh-122170: Handle ValueError raised by os.stat() in linecache (GH-122176) (GH-122348) 2024-07-27 10:54:49 +00:00
test_list.py [3.13] GH-121012: Set index to -1 when list iterators become exhausted in tier 2 (GH-121483) (GH-121494) 2024-07-08 18:09:54 +01:00
test_listcomps.py
test_lltrace.py
test_locale.py
test_logging.py [3.13] gh-117657: Skip tests that fork with threads under TSan (GH-121599) (#121819) 2024-07-15 21:10:37 +00: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
test_msvcrt.py
test_multibytecodec.py
test_multiprocessing_main_handling.py
test_named_expressions.py
test_netrc.py
test_ntpath.py
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
test_os.py [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
test_osx_env.py
test_patma.py
test_pdb.py [3.13] gh-118714: Make the pdb post-mortem restart/quit behavior more reasonable (GH-118725) (#121346) 2024-07-03 12:15:53 -07:00
test_peepholer.py
test_pep646_syntax.py
test_perf_profiler.py
test_perfmaps.py
test_pickle.py [3.13] gh-122311: Add more tests for pickle (GH-122376) (GH-122377) 2024-07-28 08:56:49 +00:00
test_picklebuffer.py
test_pickletools.py
test_pkg.py
test_pkgutil.py [3.13] gh-59022: Added tests for `pkgutil.extend_path` (GH-121673) (GH-121951) 2024-07-19 16:35:51 +02: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 [3.13] gh-121200: Fix test_expanduser_pwd2() of test_posixpath (GH-121228) (#121232) 2024-07-01 16:13:41 +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 [3.13] gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450) (GH-120700) 2024-06-19 09:20:09 +02:00
test_pyexpat.py
test_queue.py
test_quopri.py
test_raise.py
test_random.py
test_range.py
test_re.py
test_readline.py [3.13] gh-121160: Add some tests for readline.set_history_length (GH-121326) (GH-121856) 2024-07-16 17:15:51 +02:00
test_regrtest.py [3.13] gh-121188: Sanitize invalid XML characters in regrtest (GH-121195) (#121204) 2024-07-01 08:55:38 +00:00
test_repl.py [3.13] gh-121790: Fix interactive console initialization (GH-121793) (GH-121822) 2024-07-16 00:49:41 +02:00
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 [3.13] gh-121863: Immortalize names in code objects to avoid crash (GH-121903) (GH-121904) 2024-07-17 09:55:22 +00:00
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
test_site.py [3.13] gh-121103: Put free-threaded libraries in `lib/python3.14t` (GH-121293) (#121631) 2024-07-11 21:00:28 +00:00
test_slice.py
test_smtplib.py
test_smtpnet.py
test_socket.py [3.13] gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload. (GH-122493) (#122504) 2024-07-31 08:48:59 +00:00
test_socketserver.py
test_sort.py
test_source_encoding.py
test_ssl.py
test_stable_abi_ctypes.py [3.13] gh-119521: Rename IncompleteInputError to _IncompleteInputError and remove from public API/ABI (GH-119680, GH-120955) (GH-120944) 2024-06-24 20:23:30 +02:00
test_startfile.py
test_stat.py
test_statistics.py [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
test_str.py
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 [3.13] gh-121571: Do not use `EnvironmentError` in tests, use `OSError` instead (GH-121572) (#121574) 2024-07-10 10:38:48 +00:00
test_sundry.py
test_super.py
test_support.py
test_symtable.py [3.13] gh-119698: fix a special case in `symtable.Class.get_methods` (GH-121802) (#121909) 2024-07-17 13:54:40 +00:00
test_syntax.py
test_sys.py [3.13] gh-118934: Make PyEval_GetLocals return borrowed reference (GH-119769) (#121869) 2024-07-19 01:38:28 +10:00
test_sys_setprofile.py [3.13] gh-122029: Log call events in sys.setprofile when it's a method with c function (GH-122072) (GH-122205) 2024-07-23 22:49:36 +00:00
test_sys_settrace.py
test_sysconfig.py [3.13] gh-122014: Account for abi_thread in test_sysconfig.test_user_similar (gh-122017) (#122039) 2024-07-19 17:13:41 +00:00
test_syslog.py
test_tabnanny.py
test_tarfile.py
test_tcl.py [3.13] gh-119614: Fix truncation of strings with embedded null characters in Tkinter (GH-120909) (GH-120938) 2024-06-24 09:45:45 +00:00
test_tempfile.py
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 [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
test_trace.py
test_traceback.py
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 [3.13] GH-121832: Assert that the version number of static builtin types is not changed by PyType_Modified (gh-122290) 2024-07-25 17:34:01 +00:00
test_type_comments.py
test_type_params.py
test_typechecks.py
test_types.py [3.13] gh-117482: Fix the Slot Wrapper Inheritance Tests (gh-122249) 2024-07-29 10:25:02 -06:00
test_typing.py [3.13] gh-114053: Fix another edge case involving `get_type_hints`, PEP 695 and PEP 563 (GH-120272) (#121003) 2024-06-25 16:30:08 +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
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-121103: Put free-threaded libraries in `lib/python3.14t` (GH-121293) (#121631) 2024-07-11 21:00:28 +00: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
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
test_zipfile64.py
test_zipimport.py [3.13] Improve zipimport tests (GH-121535) (GH-121570) 2024-07-10 13:11:39 +03:00
test_zipimport_support.py
test_zlib.py
testcodec.py
tf_inherit_check.py
win_console_handler.py
xmltests.py