cpython/Lib/test
RanKKI a62ba52f14
gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has extra text (#127547)
Up to this point message handling has been very strict with regards to content encoding values: mixed case was accepted, but trailing blanks or other text would cause decoding failure, even if the first token was a valid encoding.  By Postel's Rule we should go ahead and decode as long as we can recognize that first token.  We have not thought of any security or backward compatibility concerns with this fix.

This fix does introduce a new technique/pattern to the Message code: we look to see if the header has a 'cte' attribute, and if so we use that.  This effectively promotes the header API exposed by HeaderRegistry to an API that any header parser "should" support.  This seems like a reasonable thing to do.  It is not, however, a requirement, as the string value of the header is still used if there is no cte attribute.

The full fix (ignore any trailing blanks or blank-separated trailing text) applies only to the non-compat32 API.  compat32 is only fixed to the extent that it now ignores trailing spaces.  Note that the HeaderRegistry parsing still records a HeaderDefect if there is extra text.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-01-05 20:32:16 -05:00
..
archivetestdata
audiodata
certdata gh-107562: Update test certificates to expire far in the future (GH-125104) 2024-10-09 11:17:02 +02:00
cjkencodings
configdata
crashers gh-121921: Make bogus_code_obj.py crash the interpreter (#121922) 2024-07-18 04:02:08 -04:00
data
decimaltestdata Fix typos (#123775) 2024-09-09 14:58:26 +02:00
dtracedata
encoded_modules
leakers
libregrtest gh-127949: deprecate asyncio.set_event_loop_policy (#128024) 2024-12-18 11:35:29 +05:30
mathdata Fix typos (#123775) 2024-09-09 14:58:26 +02:00
regrtestdata/import_from_tests
subprocessdata
support gh-128192: mark new tests with skips based on hashlib algorithm availability (gh-128324) 2024-12-28 22:32:32 -08:00
test_ast gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_asyncio gh-128002: fix many thread safety issues in asyncio (#128147) 2025-01-04 14:18:22 +05:30
test_capi gh-128013: fix data race in PyUnicode_AsUTF8AndSize on free-threading (#128021) 2024-12-19 17:08:32 +05:30
test_cext test_cext, test_cppext: enable /W4 warnings on Windows (#124253) 2024-09-19 22:32:01 +02:00
test_concurrent_futures gh-127949: deprecate asyncio.set_event_loop_policy (#128024) 2024-12-18 11:35:29 +05:30
test_cppext gh-127906: Test the limited C API in test_cppext (#127916) 2024-12-13 13:23:20 +00:00
test_ctypes gh-112015: Implement ctypes.memoryview_at() (GH-112018) 2025-01-03 14:07:07 +01:00
test_dataclasses gh-118974: Add decorator argument to make_dataclass (gh-122723) 2024-10-01 09:51:51 -04:00
test_doctest gh-97850: remove `find_loader and get_loader from pkgutil` (#119656) 2024-11-01 18:35:22 +02:00
test_email gh-98188: Fix EmailMessage.get_payload to decode data when CTE value has extra text (#127547) 2025-01-05 20:32:16 -05:00
test_free_threading gh-115999: Specialize STORE_ATTR in free-threaded builds. (gh-127838) 2024-12-19 10:21:17 -08:00
test_future_stmt gh-126139: Improve error message location for future statement with unknown feature (#126140) 2024-10-29 23:57:59 +00:00
test_gdb gh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572) 2024-09-02 13:24:53 +00:00
test_import gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (#128047) 2024-12-20 00:22:26 -08:00
test_importlib GH-126606: don't write incomplete pyc files (GH-126627) 2024-11-13 21:39:10 +00:00
test_inspect gh-128265: Support WASI/Emscripten on PDB tests, by removing asyncio from pdb tests (#128264) 2024-12-28 16:59:49 +02:00
test_interpreters gh-127165: Disallow embedded NULL characters in _interpreters (#127199) 2024-12-01 06:33:23 +00:00
test_json gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_module gh-125900: Clean-up logic around immortalization in free-threading (#125901) 2024-10-24 18:09:59 -04:00
test_multiprocessing_fork gh-117657: Skip test when running under TSan (GH-121549) 2024-07-09 14:12:45 -07:00
test_multiprocessing_forkserver
test_multiprocessing_spawn
test_pathlib pathlib tests: create walk() test hierarchy without using class under test (#128338) 2025-01-04 15:45:24 +00:00
test_peg_generator gh-125588: Teach the python PEG generator the new f-string tokens (#125589) 2024-10-29 23:40:12 +00:00
test_pydoc gh-119180: Set the name of the param to __annotate__ to "format" (#124730) 2024-12-30 08:19:38 -08:00
test_pyrepl gh-125666: Avoid PyREPL exiting when a null byte is in input (#125732) 2024-10-27 01:23:53 +00:00
test_sqlite3 add missing gc_collect() calls in sqlite3 tests (#127446) 2024-12-02 11:11:28 +01:00
test_tkinter gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap() (GH-128015) 2025-01-02 17:51:57 +02:00
test_tomllib gh-126175: Add attributes to TOMLDecodeError. Deprecate free-form __init__ args (GH-126428) 2024-11-13 13:52:16 +01:00
test_tools gh-126700: pygettext: Support more gettext functions (GH-126912) 2024-11-22 16:52:16 +02:00
test_ttk gh-124111: Update tkinter for compatibility with Tcl/Tk 9.0.0 (GH-124156) 2024-11-14 12:45:08 -06:00
test_unittest gh-127949: deprecate asyncio.set_event_loop (#128218) 2024-12-24 19:24:28 +05:30
test_warnings gh-126209: Fix inconsistency of skip_file_prefixes in warnings.warn's C and Python implementations (GH-126329) 2024-11-12 13:01:56 +01:00
test_zipfile gh-123424: add ZipInfo._for_archive to set suitable default properties (#123429) 2024-12-29 18:30:53 +00:00
test_zoneinfo gh-125900: Clean-up logic around immortalization in free-threading (#125901) 2024-10-24 18:09:59 -04:00
tkinterdata
tokenizedata
tracedmodules
translationdata gh-126946: Improve error message in getopt.do_longs based on existing comment (GH-126871) 2024-11-26 10:54:02 +02:00
typinganndata gh-114053: Fix another edge case involving get_type_hints, PEP 695 and PEP 563 (#120272) 2024-06-25 16:53:18 +01:00
wheeldata
xmltestdata
zipimport_data
.ruff.toml
__init__.py
__main__.py
_test_atexit.py
_test_eintr.py gh-107851: Fix spurious failures in fcntl eintr tests (#121556) 2024-07-10 10:36:52 -04:00
_test_embed_set_config.py gh-107954, PEP 741: Add PyConfig_Get()/Set() functions (#123472) 2024-09-02 23:25:08 +02:00
_test_embed_structseq.py gh-108303: Remove the non-test Lib/test/reperf.py (GH-114356) 2024-09-13 13:13:52 +02:00
_test_monitoring_shutdown.py
_test_multiprocessing.py gh-127586: multiprocessing.Pool does not properly restore blocked signals (try 2) (GH-128011) 2024-12-27 14:09:01 -08:00
_test_venv_multiprocessing.py
archiver_tests.py
audiotests.py
audit-tests.py gh-126018: Avoid aborting due to unnecessary assert in sys.audit (#126020) 2024-10-27 07:41:42 -07:00
autotest.py
bisect_cmd.py
clinic.test.c gh-128083: Fix macro redefinition warning in clinic. (GH-127950) 2024-12-19 15:00:30 +01:00
cov.py
curses_tests.py
datetimetester.py gh-126947: Typechecking for _pydatetime.timedelta.__new__ arguments (#126949) 2024-11-19 22:40:52 +03:00
dis_module.py
empty.vbs
exception_hierarchy.txt gh-119521: Remove _IncompleteInputError from the docs (GH-120993) 2024-06-27 09:09:22 +02:00
fork_wait.py
levenshtein_examples.json
list_tests.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
lock_tests.py gh-121474: Add threading.Barrier parties arg sanity check. (GH-121480) 2024-07-30 11:53:07 +03:00
mapping_tests.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
memory_watchdog.py
mime.types
mock_socket.py
mp_fork_bomb.py
mp_preload.py
multibytecodec_support.py
pickletester.py gh-126992: Change pickle code to base 10 for load_long and load_int (GH-127042) 2024-12-11 12:37:59 +00:00
profilee.py
pstats.pck
pyclbr_input.py gh-120449: fix `test_pyclbr` introspection for mangled names (GH-120450) 2024-06-18 14:29:43 +00:00
pythoninfo.py gh-115382: Fix cross compiles when host and target use same SOABI 2024-10-16 23:01:42 +01:00
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
regrtest.py
relimport.py
seq_tests.py gh-125900: Clean-up logic around immortalization in free-threading (#125901) 2024-10-24 18:09:59 -04:00
signalinterproctester.py
ssl_servers.py
ssltests.py
string_tests.py closes gh-124016: update Unicode to 16.0.0 (#124017) 2024-09-13 07:47:04 -07:00
test___all__.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test__colorize.py gh-127353: Allow to force color output on Windows V2 (#127926) 2024-12-14 17:25:49 +02:00
test__interpchannels.py gh-76785: Expand How Interpreter Channels Handle Interpreter Finalization (gh-121805) 2024-07-15 19:43:59 +00:00
test__interpreters.py gh-126654: Fix crash in several functions in _interpreters module (#126678) 2024-11-11 17:05:56 +05:30
test__locale.py GH-126727: Fix test_era_nl_langinfo with Japanese ERAs on Solaris (GH-127327) 2024-12-05 20:43:19 +02:00
test__opcode.py GH-122390: Replace _Py_GetbaseOpcode with _Py_GetBaseCodeUnit (GH-122942) 2024-08-13 14:22:57 +01:00
test__osx_support.py
test_abc.py
test_abstract_numbers.py
test_android.py Increase minimum Android API level to 24 (#125946) 2024-10-25 08:41:07 +08:00
test_annotationlib.py gh-119180: Add VALUE_WITH_FAKE_GLOBALS format to annotationlib (#124415) 2024-11-26 15:40:13 +00:00
test_apple.py gh-126925: Modify how iOS test results are gathered (#127592) 2024-12-09 13:28:57 +08:00
test_argparse.py GH-127133: Remove ability to nest argument groups & mutually exclusive groups (#127186) 2024-11-24 15:20:37 +00:00
test_array.py Fix typos in comments and docstring (#122720) 2024-08-07 07:39:16 +01:00
test_asdl_parser.py
test_asyncgen.py gh-127949: deprecate asyncio.set_event_loop (#128218) 2024-12-24 19:24:28 +05:30
test_atexit.py gh-126907: make atexit thread safe in free-threading (#127935) 2024-12-16 19:31:44 +00:00
test_audit.py gh-126018: Avoid aborting due to unnecessary assert in sys.audit (#126020) 2024-10-27 07:41:42 -07:00
test_augassign.py
test_base64.py
test_baseexception.py gh-119521: Remove _IncompleteInputError from the docs (GH-120993) 2024-06-27 09:09:22 +02:00
test_bdb.py gh-125422: Don't set the caller's f_trace if it's botframe (#125427) 2024-10-15 10:51:37 -04:00
test_bigaddrspace.py
test_bigmem.py
test_binascii.py
test_binop.py
test_bisect.py
test_bool.py
test_buffer.py gh-126980: Fix bytearray.__buffer__ crash on PyBUF_{READ,WRITE} (#126981) 2024-11-19 17:44:53 +03:00
test_bufio.py
test_builtin.py gh-128404: Remove `asyncio from test_builtin` (#128403) 2025-01-02 15:00:26 +02:00
test_bytes.py gh-127740: Add some more tests for earlier PR #127756 (#127818) 2024-12-12 02:18:12 +00:00
test_bz2.py Bump Ruff to 0.6.7 (#124384) 2024-09-23 22:19:35 +00:00
test_c_locale_coercion.py
test_calendar.py gh-126476: Raise IllegalMonthError for calendar.formatmonth() when the input month is not correct (GH-126484) 2024-11-15 11:03:06 -08:00
test_call.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_charmapcodec.py
test_class.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_clinic.py gh-128152: Argument Clinic: ignore pre-processor directives inside C comments (#128464) 2025-01-04 11:46:04 +01:00
test_cmath.py gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) 2024-09-08 16:01:54 +03:00
test_cmd.py
test_cmd_line.py gh-115999: Implement thread-local bytecode and enable specialization for BINARY_OP (#123926) 2024-11-04 11:13:32 -08:00
test_cmd_line_script.py gh-125522 : add explicit exception types to bare excepts in tests (#125523) 2024-10-15 17:00:04 +01:00
test_code.py gh-126072: Set docstring attribute for module and class (#126231) 2024-11-08 15:13:18 +00:00
test_code_module.py gh-122478: Remove internal frames from tracebacks in REPL (GH-122528) 2024-08-07 23:20:57 +03:00
test_codeccallbacks.py gh-124665: Add _PyCodec_UnregisterError and _codecs._unregister_error (#124677) 2024-09-29 02:25:23 +02:00
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 gh-123803: Support arbitrary code page encodings on Windows (GH-123804) 2024-11-18 17:45:25 +00:00
test_codeop.py
test_collections.py
test_colorsys.py
test_compare.py
test_compile.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_compileall.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test_compiler_assemble.py gh-126072: do not add None to co_consts if there is no docstring (GH-126101) 2024-10-30 09:01:09 +00:00
test_compiler_codegen.py GH-122548: Implement branch taken and not taken events for sys.monitoring (GH-122564) 2024-12-19 16:59:51 +00:00
test_complex.py gh-120010: Fix invalid (nan+nanj) results in _Py_c_prod() (GH-120287) 2024-12-06 12:28:32 +02:00
test_configparser.py gh-123049: configparser: Allow to create the unnamed section from scratch. (#123077) 2024-08-18 15:52:25 -04:00
test_contains.py gh-95144: Improve error message of ... in None (GH-119888) 2024-07-12 16:34:17 +00:00
test_context.py gh-126451: Register contextvars.Context to collections.abc.Mapping (#126452) 2024-11-07 01:12:45 +03:00
test_contextlib.py Bump Ruff to 0.6.7 (#124384) 2024-09-23 22:19:35 +00:00
test_contextlib_async.py gh-128265: Support WASI/Emscripten on PDB tests, by removing asyncio from pdb tests (#128264) 2024-12-28 16:59:49 +02:00
test_copy.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_copyreg.py
test_coroutines.py gh-127949: deprecate asyncio.set_event_loop (#128218) 2024-12-24 19:24:28 +05:30
test_cprofile.py gh-126220: Fix crash on calls to _lsprof.Profiler methods with 0 args (backportable) (#126271) 2024-11-02 00:53:29 +03:00
test_csv.py gh-126133: Only use start year in PSF copyright, remove end years (#126236) 2024-11-12 15:59:19 +02:00
test_curses.py gh-120378: Fix crash caused by integer overflow in curses (#124555) 2024-10-02 14:31:23 +00:00
test_datetime.py gh-120242: Fix handling of [setUp,tearDown]Class in test_datetime (#120243) 2024-06-08 10:51:09 +03:00
test_dbm.py
test_dbm_dumb.py
test_dbm_gnu.py gh-126742: Add _PyErr_SetLocaleString, use it for gdbm & dlerror messages (GH-126746) 2024-12-17 12:12:45 +01:00
test_dbm_ndbm.py
test_dbm_sqlite3.py gh-120417: Remove unused imports in tests (part 2) (#120630) 2024-06-17 21:05:37 +02:00
test_decimal.py gh-121798: Add class method Decimal.from_number() (GH-121801) 2024-10-14 08:24:01 +00:00
test_decorators.py gh-120417: Remove unused imports in tests (part 2) (#120630) 2024-06-17 21:05:37 +02:00
test_defaultdict.py
test_deque.py
test_descr.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_descrtut.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test_devpoll.py
test_dict.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_dictcomps.py gh-123142: fix too wide source location of GET_ITER/GET_AITER (#123420) 2024-08-28 17:11:52 +01:00
test_dictviews.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_difflib.py gh-115801: Only allow sequence of strings as input for difflib.unified_diff (GH-118333) 2024-06-10 14:06:18 +03:00
test_difflib_expect.html
test_dis.py GH-122548: Implement branch taken and not taken events for sys.monitoring (GH-122564) 2024-12-19 16:59:51 +00:00
test_docxmlrpc.py
test_dtrace.py
test_dynamic.py
test_dynamicclassattribute.py
test_eintr.py
test_embed.py gh-126925: Modify how iOS test results are gathered (#127592) 2024-12-09 13:28:57 +08:00
test_ensurepip.py gh-120417: Remove unused imports in tests (part 2) (#120630) 2024-06-17 21:05:37 +02:00
test_enum.py gh-112328: Make EnumDict usable on its own and document it (GH-123669) 2024-12-20 11:40:58 -08:00
test_enumerate.py
test_eof.py gh-124188: Fix PyErr_ProgramTextObject() (GH-124189) 2024-09-24 11:01:37 +03:00
test_epoll.py
test_errno.py
test_except_star.py gh-128049: Fix type confusion bug with the return value of a custom ExceptionGroup split function (#128079) 2024-12-20 19:20:31 +00:00
test_exception_group.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_exception_hierarchy.py
test_exception_variations.py
test_exceptions.py gh-111609: Test end_offset in SyntaxError subclass (#127830) 2024-12-11 19:32:54 +01:00
test_extcall.py
test_external_inspection.py
test_faulthandler.py gh-128400: Only show the current thread in faulthandler if the GIL is disabled (GH-128425) 2025-01-03 14:14:57 -05:00
test_fcntl.py
test_file.py gh-125522 : add explicit exception types to bare excepts in tests (#125523) 2024-10-15 17:00:04 +01:00
test_file_eintr.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test_filecmp.py gh-122400: Handle ValueError in filecmp (GH-122401) 2024-07-30 08:50:30 +00:00
test_fileinput.py
test_fileio.py gh-127146: Emscripten clean up test suite (#127984) 2024-12-17 07:48:23 +00:00
test_fileutils.py
test_finalization.py
test_float.py gh-53203: Improve tests for strptime() (GH-125090) 2024-10-08 08:40:02 +00:00
test_flufl.py
test_fnmatch.py gh-122288: Improve performances of fnmatch.translate (#122289) 2024-11-27 16:42:45 +00:00
test_fork1.py
test_format.py gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) 2024-07-19 08:06:02 +00:00
test_fractions.py gh-121797: Add class method Fraction.from_number() (GH-121800) 2024-10-14 07:54:59 +00:00
test_frame.py gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals (#125616) 2024-10-21 11:43:08 -04:00
test_frozen.py
test_fstring.py Fix typos (#123775) 2024-09-09 14:58:26 +02:00
test_ftplib.py
test_funcattrs.py gh-122864: Fix a `test_funcattrs.test___builtins__` when executing directly (#124845) 2024-10-02 12:58:39 +03:00
test_functools.py gh-121676: Raise a `DeprecationWarning if the Python implementation of functools.reduce is called with function or sequence` as a keyword args (#121677) 2025-01-01 13:36:47 +02:00
test_gc.py gh-126491: Revert "GH-126491: Lower heap size limit with faster marking (GH-127519)" (GH-127770) 2024-12-10 11:53:56 +01:00
test_generated_cases.py gh-115999: Specialize loading attributes from modules in free-threaded builds (#127711) 2024-12-13 10:17:16 -08:00
test_generator_stop.py
test_generators.py gh-126091: Always link generator frames when propagating a thrown-in exception through a yield-from chain (#126092) 2024-11-21 17:37:49 -06:00
test_genericalias.py gh-126012: Add __class_getitem__ to memoryview (#126013) 2024-10-27 13:36:03 +03:00
test_genericclass.py
test_genericpath.py gh-124917: Allow keyword args to os.path.exists/lexists on Windows (#124918) 2024-10-11 12:41:59 -07:00
test_genexps.py gh-119057: Use better error messages for zero division (#119066) 2024-06-03 19:03:56 +03:00
test_getopt.py gh-126390: Support for preserving order of options and nonoption arguments in gnu_getopt() (GH-126393) 2024-11-13 22:50:46 +02:00
test_getpass.py
test_getpath.py GH-126985: Don't override venv detection with PYTHONHOME (#127968) 2024-12-15 21:12:13 +00:00
test_gettext.py
test_glob.py gh-109959: Log the current directory in test_glob.test_selflink() (#128122) 2024-12-20 13:37:20 +01:00
test_global.py gh-58749: Remove incorrect language spec claims about the global statement (GH-126523) 2024-11-12 10:11:40 +10:00
test_grammar.py gh-119180: Add annotationlib module to support PEP 649 (#119891) 2024-07-23 21:16:50 +00:00
test_graphlib.py
test_grp.py
test_gzip.py gh-125260: Change the default `gzip.compress()` mtime to 0 (#125261) 2024-10-12 18:18:48 +01:00
test_hash.py
test_hashlib.py gh-99108: Add HACL* Blake2 implementation to hashlib (GH-119316) 2024-08-13 21:42:19 +00:00
test_heapq.py
test_hmac.py
test_html.py
test_htmlparser.py
test_http_cookiejar.py
test_http_cookies.py gh-123401: Fix http.cookies module to support obsolete RFC 850 date format (#123405) 2024-12-11 13:28:19 +00:00
test_httplib.py gh-127089: Add missing description for codes in http.HTTPStatus (#127100) 2024-12-27 15:12:25 +01:00
test_httpservers.py
test_idle.py
test_imaplib.py gh-53203: Improve tests for strptime() (GH-125090) 2024-10-08 08:40:02 +00:00
test_index.py
test_int.py gh-120417: Remove unused imports in tests (part 3) (#120631) 2024-06-17 21:04:58 +02:00
test_int_literal.py
test_io.py gh-109523: Raise a BlockingIOError if reading text from a non-blocking stream cannot immediately return bytes. (GH-122933) 2024-12-02 14:18:30 +01:00
test_ioctl.py gh-119770: Make termios ioctl() constants positive (#119840) 2024-05-31 17:18:40 +02:00
test_ipaddress.py gh-124217, ipaddress: Add RFC 9637 reserved IPv6 block 3fff::/20 (#124240) 2024-09-20 11:01:28 +00:00
test_isinstance.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_iter.py gh-123142: fix too wide source location of GET_ITER/GET_AITER (#123420) 2024-08-28 17:11:52 +01:00
test_iterlen.py
test_itertools.py gh-126618: fix repr(itertools.count(sys.maxsize)) (#127048) 2024-12-02 14:14:40 +01:00
test_keyword.py
test_keywordonlyarg.py
test_kqueue.py
test_largefile.py GH-120754: Add more tests around seek + readall (#122103) 2024-07-23 23:14:35 -07:00
test_launcher.py gh-119070: Update test_shebang_executable_extension to always use non-installed version (GH-119846) 2024-06-04 10:17:45 +02:00
test_linecache.py gh-122170: Handle ValueError raised by os.stat() in linecache (GH-122176) 2024-07-27 10:10:42 +00:00
test_list.py GH-121012: Set index to -1 when list iterators become exhausted in tier 2 (GH-121483) 2024-07-08 14:20:13 +01:00
test_listcomps.py gh-125522 : add explicit exception types to bare excepts in tests (#125523) 2024-10-15 17:00:04 +01:00
test_lltrace.py
test_locale.py GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (#124110) 2024-09-16 23:00:36 +00:00
test_logging.py gh-127949: deprecate asyncio.set_event_loop_policy (#128024) 2024-12-18 11:35:29 +05:30
test_long.py gh-121485: Always use 64-bit integers for integers bits count (GH-121486) 2024-08-30 08:13:24 +03:00
test_longexp.py
test_lzma.py
test_mailbox.py gh-120417: Remove unused imports in tests (part 3) (#120631) 2024-06-17 21:04:58 +02:00
test_marshal.py gh-127146: Resolve some minor problems in Emscripten tests (#127565) 2024-12-04 08:06:20 +08:00
test_math.py gh-127146: Resolve some minor problems in Emscripten tests (#127565) 2024-12-04 08:06:20 +08:00
test_math_property.py
test_memoryio.py
test_memoryview.py gh-127085: Add a test skip if multiprocessing isn't available (#128019) 2024-12-17 08:18:33 +00:00
test_metaclass.py
test_mimetypes.py gh-85957: Add missing MIME types for images with RFCs (#126966) 2024-11-18 20:13:20 +02:00
test_minidom.py
test_mmap.py gh-124213: Skip tests failing inside systemd-nspawn --suppress-sync=true (#124215) 2024-09-20 13:37:49 +00:00
test_modulefinder.py
test_monitoring.py gh-127274: Defer nested methods (#128012) 2024-12-19 13:03:14 -08:00
test_msvcrt.py Fix typos (#123775) 2024-09-09 14:58:26 +02:00
test_multibytecodec.py
test_multiprocessing_main_handling.py
test_named_expressions.py
test_netrc.py
test_ntpath.py gh-126780: Fix ntpath.normpath() for drive-relative paths (GH-126801) 2024-11-21 14:43:36 +00:00
test_numeric_tower.py
test_opcache.py gh-115999: Update test_opcache to test with nested method (gh-128166) 2024-12-24 02:08:34 +09:00
test_opcodes.py gh-119180: PEP 649 compiler changes (#119361) 2024-06-11 13:06:49 +00:00
test_openpty.py
test_operator.py gh-127065: Make methodcaller thread-safe and re-entrant (GH-127746) 2024-12-11 10:06:07 -05:00
test_optimizer.py
test_optparse.py gh-126413: Add translation tests for getopt and optparse (GH-126698) 2024-11-12 00:16:39 +02:00
test_ordered_dict.py gh-125900: Clean-up logic around immortalization in free-threading (#125901) 2024-10-24 18:09:59 -04:00
test_os.py gh-127949: deprecate asyncio.set_event_loop_policy (#128024) 2024-12-18 11:35:29 +05:30
test_osx_env.py
test_patma.py gh-123562: Improve SyntaxError message for case ... as a.b (#123563) 2024-09-02 13:11:44 +02:00
test_pdb.py gh-128265: Support WASI/Emscripten on PDB tests, by removing asyncio from pdb tests (#128264) 2024-12-28 16:59:49 +02:00
test_peepholer.py GH-125837: Split LOAD_CONST into three. (GH-125972) 2024-10-29 11:15:42 +00:00
test_pep646_syntax.py
test_perf_profiler.py gh-126255: Ignore warning about JIT being deactivated when perf support is active in test_embed.InitConfigTests.test_initconfig_api (#126302) 2024-11-01 23:10:58 +00:00
test_perfmaps.py
test_pickle.py gh-125631: Enable setting persistent_id and persistent_load of pickler and unpickler (GH-125752) 2024-11-07 08:53:02 +02:00
test_picklebuffer.py
test_pickletools.py gh-126992: Change pickle code to base 10 for load_long and load_int (GH-127042) 2024-12-11 12:37:59 +00:00
test_pkg.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test_pkgutil.py gh-97850: remove `find_loader and get_loader from pkgutil` (#119656) 2024-11-01 18:35:22 +02:00
test_platform.py gh-122549: Add platform.invalidate_caches() (#122547) 2024-11-15 13:52:56 +00:00
test_plistlib.py gh-126133: Only use start year in PSF copyright, remove end years (#126236) 2024-11-12 15:59:19 +02:00
test_poll.py
test_popen.py
test_poplib.py
test_positional_only_arg.py gh-119180: PEP 649 compiler changes (#119361) 2024-06-11 13:06:49 +00:00
test_posix.py gh-118201: Simplify conv_confname (#126089) 2024-11-19 10:42:19 -05:00
test_posixpath.py gh-126780: Fix ntpath.normpath() for drive-relative paths (GH-126801) 2024-11-21 14:43:36 +00:00
test_pow.py
test_pprint.py gh-120417: Remove unused imports in tests (part 4) (#120632) 2024-06-17 17:35:20 +02:00
test_print.py Remove "print >>obj" exception hint for Python 2 (#122853) 2024-08-12 04:12:14 +00:00
test_profile.py
test_property.py Fix typos (#123775) 2024-09-09 14:58:26 +02:00
test_pstats.py
test_pty.py
test_pulldom.py
test_pwd.py
test_py_compile.py
test_pyclbr.py gh-120449: fix `test_pyclbr` introspection for mangled names (GH-120450) 2024-06-18 14:29:43 +00:00
test_pyexpat.py
test_queue.py Fix typos (#123775) 2024-09-09 14:58:26 +02:00
test_quopri.py
test_raise.py gh-125522 : add explicit exception types to bare excepts in tests (#125523) 2024-10-15 17:00:04 +01:00
test_random.py gh-123968: Fix lower bound for python -m random --float (#123971) 2024-09-12 16:54:18 +03:00
test_range.py
test_re.py gh-124130: Fix a bug in matching regular expression \B in empty string (GH-127007) 2025-01-02 12:11:21 +00:00
test_readline.py gh-122431: Disallow negative values in readline.append_history_file (#122469) 2024-12-05 16:07:38 +00:00
test_regrtest.py gh-127718: Add colour to test.regrtest output (#127719) 2024-12-10 09:44:15 +02:00
test_repl.py gh-124594: Create and reuse the same context for the entire asyncio REPL session (#124595) 2024-10-01 14:17:22 +00:00
test_reprlib.py gh-113570: reprlib.repr does not use builtin __repr__ for reshadowed builtins (GH-113577) 2024-10-17 16:34:37 +00:00
test_resource.py
test_richcmp.py gh-126146: Remove `__cmp__` method from tests (#126147) 2024-10-30 00:47:26 +02:00
test_rlcompleter.py
test_robotparser.py
test_runpy.py
test_sax.py gh-120417: Fix "imported but unused" linter warnings (#120461) 2024-06-14 20:39:50 +02:00
test_sched.py
test_scope.py gh-121863: Immortalize names in code objects to avoid crash (GH-121903) 2024-07-17 11:31:28 +02:00
test_script_helper.py
test_secrets.py
test_select.py
test_selectors.py
test_set.py gh-121795: Improve performance of set membership testing from set arguments (#121796) 2024-07-22 10:05:23 -05:00
test_setcomps.py gh-123142: fix too wide source location of GET_ITER/GET_AITER (#123420) 2024-08-28 17:11:52 +01:00
test_shelve.py
test_shlex.py
test_shutil.py gh-127001: Fix PATHEXT issues in shutil.which() on Windows (GH-127035) 2024-11-22 17:52:15 +02:00
test_signal.py gh-124083: Skip test_signal.test_strsignal() on NetBSD (#124084) 2024-09-18 21:22:00 +00:00
test_site.py gh-121103: Put free-threaded libraries in lib/python3.14t (#121293) 2024-07-11 16:21:37 -04:00
test_slice.py
test_smtplib.py
test_smtpnet.py
test_socket.py gh-128277: remove unnecessary critical section from socket.close (#128305) 2025-01-01 18:00:47 +05:30
test_socketserver.py
test_sort.py
test_source_encoding.py
test_ssl.py gh-128035: Add ssl.HAS_PHA to detect libssl PHA support (GH-128036) 2024-12-24 18:29:27 +00:00
test_stable_abi_ctypes.py gh-121654: Add PyType_Freeze() function (#122457) 2024-10-25 11:12:48 +02:00
test_startfile.py
test_stat.py
test_statistics.py Fix typos in comments (#123201) 2024-08-21 12:49:23 +00:00
test_str.py gh-127903: Fix a crash on debug builds when calling Objects/unicodeobject::_copy_characters` (#127876) 2025-01-03 18:47:58 +00:00
test_strftime.py gh-52551: Use wcsftime() to implement time.strftime() on Windows (GH-125658) 2024-10-19 11:29:51 +03:00
test_string.py
test_string_literals.py Fix typos (#123775) 2024-09-09 14:58:26 +02:00
test_stringprep.py
test_strptime.py gh-127146: Emscripten clean up test suite (#127984) 2024-12-17 07:48:23 +00:00
test_strtod.py
test_struct.py gh-125900: Clean-up logic around immortalization in free-threading (#125901) 2024-10-24 18:09:59 -04:00
test_structseq.py gh-122527: Fix a crash on deallocation of PyStructSequence (GH-122577) 2024-08-02 18:11:44 +02:00
test_subclassinit.py
test_subprocess.py gh-120754: Add a strace helper and test set of syscalls for open().read(), Take 2 (#123413) 2024-11-02 20:37:21 -07:00
test_sundry.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test_super.py gh-125767: Fix pickling and copying of super objects (GH-125781) 2024-10-21 21:30:45 +03:00
test_support.py gh-127146: Emscripten clean up test suite (#127984) 2024-12-17 07:48:23 +00:00
test_symtable.py gh-122560: add test that comprehension loop var appears only in one scope of the symtable (#122582) 2024-08-02 23:56:51 +01:00
test_syntax.py gh-123562: Improve SyntaxError message for case ... as a.b (#123563) 2024-09-02 13:11:44 +02:00
test_sys.py gh-115999: Implement thread-local bytecode and enable specialization for BINARY_OP (#123926) 2024-11-04 11:13:32 -08:00
test_sys_setprofile.py gh-125522 : add explicit exception types to bare excepts in tests (#125523) 2024-10-15 17:00:04 +01:00
test_sys_settrace.py gh-128404: Remove asyncio from Lib/test/test_sys_settrace (#128435) 2025-01-03 12:33:35 +02:00
test_sysconfig.py GH-126789: fix some sysconfig data on late site initializations (#127729) 2024-12-08 05:57:22 +00:00
test_syslog.py
test_tabnanny.py gh-120495: Fix incorrect exception handling in Tab Nanny (#120498) 2024-06-15 05:04:14 -06:00
test_tarfile.py gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) 2024-08-31 15:17:05 -07:00
test_tcl.py gh-119614: Fix truncation of strings with embedded null characters in Tkinter (GH-120909) 2024-06-24 12:17:25 +03:00
test_tempfile.py gh-126639: Add ResourceWarning to NamedTemporaryFile (#126677) 2024-12-18 10:12:24 +00:00
test_termios.py Android: Update tests for newly-available functions affected by SELinux (#126015) 2024-10-27 10:35:53 +08:00
test_textwrap.py
test_thread.py
test_thread_local_bytecode.py gh-115999: Implement thread-local bytecode and enable specialization for BINARY_OP (#123926) 2024-11-04 11:13:32 -08:00
test_threadedtempfile.py
test_threading.py gh-59705: Set OS thread name when Thread.name is changed (#127702) 2024-12-10 17:33:11 +01:00
test_threading_local.py gh-127190: Fix local_setattro() error handling (#127366) 2024-11-28 17:35:48 +01:00
test_threadsignals.py
test_time.py gh-127146: Emscripten clean up test suite (#127984) 2024-12-17 07:48:23 +00:00
test_timeit.py
test_timeout.py
test_tokenize.py gh-125008: Fix tokenize.untokenize roundtrip for \n{{ (#125013) 2024-10-06 15:16:41 +02:00
test_trace.py gh-112192: Increase the trace module coverage precision to one decimal (#126972) 2024-12-03 23:33:13 +01:00
test_traceback.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_tracemalloc.py
test_ttk_textonly.py
test_tty.py
test_tuple.py
test_turtle.py gh-123614: Add save function to turtle.py (#123617) 2024-09-12 21:36:17 -07:00
test_type_aliases.py gh-124787: Fix TypeAliasType and incorrect type_params (#124795) 2024-10-11 17:39:18 +03:00
test_type_annotations.py gh-119180: Set the name of the param to __annotate__ to "format" (#124730) 2024-12-30 08:19:38 -08:00
test_type_cache.py gh-115999: Enable specialization of CALL instructions in free-threaded builds (#127123) 2024-12-03 11:20:20 -08:00
test_type_comments.py
test_type_params.py gh-128404: remove asyncio from test_type_params (#128436) 2025-01-03 07:50:24 +00:00
test_typechecks.py
test_types.py gh-53203: Improve tests for strptime() (GH-125090) 2024-10-08 08:40:02 +00:00
test_typing.py gh-88834: Unify the instance check for typing.Union and types.UnionType (GH-128363) 2024-12-31 10:02:58 +02:00
test_ucn.py
test_unary.py
test_unicode_file.py
test_unicode_file_functions.py gh-127146: Emscripten clean up test suite (#127984) 2024-12-17 07:48:23 +00:00
test_unicode_identifiers.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test_unicodedata.py closes gh-124016: update Unicode to 16.0.0 (#124017) 2024-09-13 07:47:04 -07:00
test_univnewlines.py
test_unpack.py gh-122239: Add actual count in unbalanced unpacking error message when possible (#122244) 2024-09-10 16:07:30 +01:00
test_unpack_ex.py
test_unparse.py
test_urllib.py GH-127090: Fix urllib.response.addinfourl.url value for opened file: URIs (#127091) 2024-12-07 17:58:42 +00:00
test_urllib2.py gh-128192: mark new tests with skips based on hashlib algorithm availability (gh-128324) 2024-12-28 22:32:32 -08:00
test_urllib2_localnet.py
test_urllib2net.py GH-127090: Fix urllib.response.addinfourl.url value for opened file: URIs (#127091) 2024-12-07 17:58:42 +00:00
test_urllib_response.py
test_urllibnet.py GH-84850: Remove urllib.request.URLopener and FancyURLopener (#125739) 2024-11-19 16:01:49 +02:00
test_urlparse.py gh-116897: Deprecate generic false values in urllib.parse.parse_qsl() (GH-116903) 2024-11-12 21:10:29 +02:00
test_userdict.py
test_userlist.py
test_userstring.py
test_utf8_mode.py
test_utf8source.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test_uuid.py gh-89083: improve UUIDv8 uniqueness tests (GH-128149) 2025-01-03 15:51:22 +01:00
test_venv.py gh-126084: Fix venvwlauncher.exe to run pythonw.exe (GH-126088) 2024-10-29 19:52:52 +00:00
test_wait3.py
test_wait4.py
test_wave.py
test_weakref.py gh-125900: Clean-up logic around immortalization in free-threading (#125901) 2024-10-24 18:09:59 -04:00
test_weakset.py
test_webbrowser.py Fix typos in docs, error messages and comments (#122502) 2024-08-01 00:26:09 +00:00
test_winapi.py gh-120417: Remove unused imports in tests (part 4) (#120632) 2024-06-17 17:35:20 +02:00
test_winconsoleio.py gh-124008: Fix calculation of the number of written bytes for the Windows console (GH-124059) 2024-11-27 13:38:12 +02:00
test_winreg.py
test_winsound.py
test_with.py gh-125522 : add explicit exception types to bare excepts in tests (#125523) 2024-10-15 17:00:04 +01:00
test_wmi.py
test_wsgiref.py
test_xml_dom_minicompat.py
test_xml_etree.py gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no longer hide exceptions (GH-123214) 2024-08-23 12:12:58 +03:00
test_xml_etree_c.py gh-127146: Emscripten: Skip segfaults in test suite (#127151) 2024-12-05 08:26:25 +08:00
test_xmlrpc.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test_xxlimited.py
test_xxtestfuzz.py
test_yield_from.py gh-126366: Fix crash if __iter__ raises an exception during yield from (#126369) 2024-11-05 15:26:36 +05:30
test_zipapp.py
test_zipfile64.py
test_zipimport.py Fix typos (#123775) 2024-09-09 14:58:26 +02:00
test_zipimport_support.py
test_zlib.py gh-125522: Remove bare except in test_zlib.test_flushes (gh-126321) 2024-11-02 08:27:07 +00:00
testcodec.py
tf_inherit_check.py
win_console_handler.py
xmltests.py