cpython/Lib/test
Miss Islington (bot) 9a79242567
bpo-45001: Make email date parsing more robust against malformed input (GH-27946)
Various date parsing utilities in the email module, such as
email.utils.parsedate(), are supposed to gracefully handle invalid
input, typically by raising an appropriate exception or by returning
None.

The internal email._parseaddr._parsedate_tz() helper used by some of
these date parsing routines tries to be robust against malformed input,
but unfortunately it can still crash ungracefully when a non-empty but
whitespace-only input is passed. This manifests as an unexpected
IndexError.

In practice, this can happen when parsing an email with only a newline
inside a ‘Date:’ header, which unfortunately happens occasionally in the
real world.

Here's a minimal example:

    $ python
    Python 3.9.6 (default, Jun 30 2021, 10:22:16)
    [GCC 11.1.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import email.utils
    >>> email.utils.parsedate('foo')
    >>> email.utils.parsedate(' ')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3.9/email/_parseaddr.py", line 176, in parsedate
        t = parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 50, in parsedate_tz
        res = _parsedate_tz(data)
      File "/usr/lib/python3.9/email/_parseaddr.py", line 72, in _parsedate_tz
        if data[0].endswith(',') or data[0].lower() in _daynames:
    IndexError: list index out of range

The fix is rather straight-forward: guard against empty lists, after
splitting on whitespace, but before accessing the first element.
(cherry picked from commit 989f6a3800)

Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
2021-08-26 08:47:27 -07:00
..
audiodata
capath bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
cjkencodings
crashers
data
decimaltestdata
dtracedata
encoded_modules
imghdrdata
leakers
libregrtest bpo-44708: Only re-run test methods that match names of previously failing test methods (GH-27287) (GH-27290) 2021-07-22 22:30:44 +02:00
sndhdrdata
subprocessdata
support bpo-44852: Support filtering over warnings without a set message (GH-27793) 2021-08-18 05:10:10 -07:00
test_asyncio bpo-45011: Fix test_asyncio without C module _asyncio (GH-27968) 2021-08-26 06:41:29 -07:00
test_email bpo-45001: Make email date parsing more robust against malformed input (GH-27946) 2021-08-26 08:47:27 -07:00
test_import bpo-28395: Remove unnecessary semicolons in tests (GH-26868) 2021-06-23 03:02:40 -07:00
test_importlib Python 3.10.0rc1 2021-08-02 20:53:59 +01:00
test_json bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189) 2021-04-06 11:18:41 +09:00
test_peg_generator bpo-43425: Update test_c_parser not to use TempdirManager (GH-26693) 2021-06-13 17:24:11 -07:00
test_tools
test_warnings bpo-43651: Fix EncodingWarning in test_warnings (GH-25126) 2021-04-02 08:57:05 +09:00
test_zoneinfo
tracedmodules
xmltestdata
ziptestdata
__init__.py
__main__.py
_test_atexit.py
_test_eintr.py
_test_embed_set_config.py
_test_multiprocessing.py bpo-30256: Add manager_owned keyword arg to AutoProxy (GH-16341) (#26987) 2021-07-01 21:15:47 -07:00
_typed_dict_helper.py bpo-41249: Fix postponed annotations for TypedDict (GH-27017) (#27204) 2021-07-17 10:48:17 +02:00
allsans.pem bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
ann_module.py bpo-44490: Improve typing module compatibility with types.Union (GH-27048) (#27222) 2021-07-19 07:22:59 -07:00
ann_module2.py
ann_module3.py
ann_module4.py bpo-43901: Lazy-create an empty annotations dict in all unannotated user classes and modules (#25623) 2021-04-29 20:09:08 -07:00
audiotest.au
audiotests.py
audit-tests.py bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and marshal.dumps (GH-26970) 2021-06-30 18:52:25 +01:00
autotest.py
bad_coding.py
bad_coding2.py
bad_getattr.py
bad_getattr2.py
bad_getattr3.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
cmath_testcases.txt
coding20731.py
curses_tests.py
dataclass_module_1.py bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490) 2021-04-21 12:41:19 +01:00
dataclass_module_1_str.py bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490) 2021-04-21 12:41:19 +01:00
dataclass_module_2.py bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490) 2021-04-21 12:41:19 +01:00
dataclass_module_2_str.py bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490) 2021-04-21 12:41:19 +01:00
dataclass_textanno.py bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490) 2021-04-21 12:41:19 +01:00
datetimetester.py
dis_module.py
doctest_aliases.py
double_const.py
empty.vbs
exception_hierarchy.txt bpo-43510: Implement PEP 597 opt-in EncodingWarning. (GH-19481) 2021-03-29 12:28:14 +09:00
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
good_getattr.py
idnsans.pem bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
ieee754.txt
imp_dummy.py
inspect_fodder.py
inspect_fodder2.py
inspect_stock_annotations.py bpo-43817: Add inspect.get_annotations(). (#25522) 2021-04-29 21:16:28 -07:00
inspect_stringized_annotations.py bpo-43817: Add inspect.get_annotations(). (#25522) 2021-04-29 21:16:28 -07:00
inspect_stringized_annotations_2.py bpo-43817: Add inspect.get_annotations(). (#25522) 2021-04-29 21:16:28 -07:00
keycert.passwd.pem
keycert.pem
keycert2.pem bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
keycert3.pem bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
keycert4.pem bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
keycertecc.pem bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
list_tests.py
lock_tests.py
mailcap.txt
make_ssl_certs.py bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
mapping_tests.py
math_testcases.txt
memory_watchdog.py
mime.types bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) (GH-27380) 2021-07-27 00:34:32 +02:00
mock_socket.py
mod_generics_cache.py
mp_fork_bomb.py
mp_preload.py
multibytecodec_support.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) 2021-04-04 09:01:23 +09:00
nokia.pem
nosan.pem bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
nullbytecert.pem
nullcert.pem
pickletester.py bpo-43907: add missing memoize call in pure python pickling of bytearray (GH-25501) 2021-04-23 23:27:14 +02:00
profilee.py
pstats.pck
pycacert.pem bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
pycakey.pem bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
pyclbr_input.py
pydoc_mod.py
pydocfodder.py
pythoninfo.py bpo-43880: Show DeprecationWarnings for deprecated ssl module features (GH-25455) 2021-04-19 07:27:10 +02:00
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
recursion.tar
regrtest.py
relimport.py
reperf.py
revocation.crl bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) 2021-04-17 10:07:19 +02:00
sample_doctest.py
sample_doctest_no_docstrings.py
sample_doctest_no_doctests.py
secp384r1.pem
selfsigned_pythontestdotnet.pem
seq_tests.py
sgml_input.html
signalinterproctester.py
Sine-1000Hz-300ms.aif
sortperf.py
ssl_cert.pem
ssl_key.passwd.pem
ssl_key.pem
ssl_servers.py
ssltests.py Revert "bpo-43989: Temporarily disable warnings in ssltests (GH-25780)" (GH-25793) 2021-05-01 13:53:57 -07:00
string_tests.py
talos-2019-0758.pem
test___all__.py
test___future__.py
test__locale.py
test__opcode.py
test__osx_support.py
test__xxsubinterpreters.py To fix the random failed test cases of test___xxsubinterpreters in multiprocess. (GH-27240) (GH-27452) 2021-07-29 19:27:24 +02:00
test_abc.py [3.10] bpo-25479: add unit test for __subclasshook__ in test_abc.py (GH-24034) (GH-26065) 2021-05-12 15:06:34 +01:00
test_abstract_numbers.py
test_aifc.py
test_argparse.py bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672) 2021-08-17 02:40:41 -07:00
test_array.py [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) 2021-06-23 16:46:25 -07:00
test_asdl_parser.py bpo-43798: Add source location attributes to alias (GH-25324) 2021-04-10 22:56:28 +02:00
test_ast.py [3.10] bpo-43897: Reject "_" captures and top-level MatchStar in the AST validator (GH-27432) (GH-27435) 2021-07-28 18:02:14 -07:00
test_asyncgen.py bpo-43751: Fix anext() bug where it erroneously returned None (GH-25238) 2021-04-11 05:51:35 +01:00
test_asynchat.py bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905) (GH-26907) 2021-06-25 00:38:01 +01:00
test_asyncore.py bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905) (GH-26907) 2021-06-25 00:38:01 +01:00
test_atexit.py
test_audioop.py
test_audit.py bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and marshal.dumps (GH-26970) 2021-06-30 18:52:25 +01:00
test_augassign.py
test_base64.py Added test case based on recommended test cases from RFC 4648 (GH-27747) 2021-08-13 04:15:27 -07:00
test_baseexception.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142) 2021-04-02 12:53:46 +09:00
test_bdb.py bpo-24160: Fix breakpoints persistence across multiple pdb sessions (GH-21989) 2021-04-02 09:15:21 -07:00
test_bigaddrspace.py
test_bigmem.py
test_binascii.py
test_binhex.py
test_binop.py
test_bisect.py
test_bool.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142) 2021-04-02 12:53:46 +09:00
test_buffer.py
test_bufio.py
test_builtin.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25142) 2021-04-02 12:53:46 +09:00
test_bytes.py bpo-44891: Tests id preserving on * 1 for str and bytes (GH-27745) 2021-08-13 04:04:08 -07:00
test_bz2.py bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol correctly (GH-26764) (GH-26845) 2021-06-22 16:59:53 +03:00
test_c_locale_coercion.py
test_calendar.py
test_call.py
test_capi.py bpo-44984: Rewrite test_null_strings in _testcapi (GH-27904) 2021-08-23 12:30:21 -07:00
test_cgi.py bpo-41139: Deprecate cgi.log() (GH-25625) 2021-04-29 11:36:04 +09:00
test_cgitb.py
test_charmapcodec.py
test_check_c_globals.py
test_class.py
test_clinic.py
test_cmath.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) 2021-04-04 09:01:23 +09:00
test_cmd.py
test_cmd_line.py bpo-43825: Fix deprecation warnings in test_cmd_line and test_collections (GH-25380) 2021-04-14 13:45:22 +02:00
test_cmd_line_script.py fix: use unambiguous punction in 'invalid escape sequence' message (GH-26582) 2021-06-07 17:36:19 -07:00
test_code.py bpo-44980: fix test_constructor to return None value (GH-27898) 2021-08-23 12:21:06 -07: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 bpo-28395: Remove unnecessary semicolons in tests (GH-26868) 2021-06-23 03:02:40 -07:00
test_collections.py bpo-44704: Make Set._hash consistent with frozenset.__hash__ (GH-27281) (GH-27282) 2021-07-21 19:23:21 -05:00
test_colorsys.py
test_compare.py
test_compile.py bpo-44622: Set line number of END_ASYNC_FOR to match that of iterator. (GH-27160) (GH-27163) 2021-07-15 16:54:38 +02:00
test_compileall.py [3.10] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708) 2021-08-24 11:09:14 -04:00
test_complex.py bpo-44698: Restore complex pow behaviour for small integral exponents (GH-27772) (GH-27796) 2021-08-17 18:38:03 +01:00
test_concurrent_futures.py
test_configparser.py bpo-38741: Definition of multiple ']' in header configparser (GH-17129) (#27110) 2021-07-13 16:35:30 +02:00
test_contains.py
test_context.py
test_contextlib.py bpo-44515: handle non-refcounted GC in contextlib tests (GH-26910) (GH-27379) 2021-07-26 23:21:36 +02:00
test_contextlib_async.py bpo-44515: handle non-refcounted GC in contextlib tests (GH-26910) (GH-27379) 2021-07-26 23:21:36 +02:00
test_copy.py
test_copyreg.py
test_coroutines.py bpo-44469: Fix tests for "async with" with bad object (GH-26817) 2021-06-21 00:57:07 -07:00
test_cprofile.py
test_crashers.py
test_crypt.py
test_csv.py bpo-43625: Enhance csv sniffer has_headers() to be more accurate (GH-26939) (GH-27494) 2021-07-30 19:30:09 +02:00
test_ctypes.py
test_curses.py [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) 2021-06-23 16:46:25 -07:00
test_dataclasses.py bpo-44015: dataclasses should allow KW_ONLY to be specified only once per class (GH-25841) 2021-05-03 03:24:53 -04:00
test_datetime.py
test_dbm.py
test_dbm_dumb.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) 2021-04-04 09:01:23 +09:00
test_dbm_gnu.py [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) 2021-06-23 16:46:25 -07:00
test_dbm_ndbm.py
test_decimal.py bpo-40928: notify users running test_decimal on macOS of malloc warnings (GH-26783) 2021-08-06 10:09:06 -07:00
test_decorators.py bpo-42073: allow classmethod to wrap other classmethod-like descriptors (GH-27115) (GH-27162) 2021-07-15 15:42:11 +02:00
test_defaultdict.py
test_deque.py bpo-28395: Remove unnecessary semicolons in tests (GH-26868) 2021-06-23 03:02:40 -07:00
test_descr.py bpo-44655: Include the name of the type in unset __slots__ attribute errors (GH-27199) (GH-27201) 2021-07-17 01:01:53 +01:00
test_descrtut.py
test_devpoll.py
test_dict.py bpo-24275: Don't downgrade unicode-only dicts to mixed on lookups (GH-25186) 2021-04-29 11:06:03 +09:00
test_dict_version.py
test_dictcomps.py
test_dictviews.py
test_difflib.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) 2021-04-04 09:01:23 +09:00
test_difflib_expect.html
test_dis.py bpo-44840: Compiler: Move duplication of exit blocks with no line numbers to after CFG optimization. (GH-27656) (#27673) 2021-08-09 10:54:48 +01:00
test_distutils.py bpo-43955: Handle the case where the distutils warning has already been triggered (GH-25675) 2021-04-28 16:21:55 +01:00
test_doctest.py bpo-35753: Fix crash in doctest with unwrap-able functions (GH-22981) (#25926) 2021-05-05 20:01:21 +02:00
test_doctest.txt
test_doctest2.py
test_doctest2.txt
test_doctest3.txt
test_doctest4.txt
test_docxmlrpc.py Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478) 2021-07-30 16:25:28 +02:00
test_dtrace.py
test_dynamic.py
test_dynamicclassattribute.py
test_eintr.py
test_embed.py [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) 2021-06-23 16:46:25 -07:00
test_ensurepip.py
test_enum.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
test_enumerate.py
test_eof.py bpo-44396: Update multi-line-start location when reallocating tokenizer buffers (GH-26676) (GH-26695) 2021-06-12 21:27:02 +01:00
test_epoll.py
test_errno.py
test_exception_hierarchy.py
test_exception_variations.py
test_exceptions.py bpo-44895: skip test_no_hang_on_context_chain_cycle2 until the refleak is fixed (GH-27761) 2021-08-16 02:01:14 -07:00
test_extcall.py
test_faulthandler.py bpo-44466: Faulthandler now detects the GC (GH-26823) (GH-26826) 2021-06-21 14:23:13 +02:00
test_fcntl.py
test_file.py bpo-14853: add back the stdin test, skip if stdin is redirected (GH-27694) 2021-08-10 07:31:00 -07:00
test_file_eintr.py bpo-43651: Fix EncodingWarning in test_file and test_file_eintr (GH-25109) 2021-04-01 11:23:03 +09:00
test_filecmp.py bpo-43651: PEP 597: Fix EncodingWarning in test_filecmp (GH-25159) 2021-04-05 12:32:35 +09:00
test_fileinput.py bpo-43651: Fix EncodingWarning in fileinput and its test (GH-25648) 2021-04-27 15:47:16 +09:00
test_fileio.py
test_finalization.py
test_float.py bpo-44954: Fix wrong result in float.fromhex corner case (GH-27834) 2021-08-20 10:48:47 -07:00
test_flufl.py
test_fnmatch.py
test_fork1.py
test_format.py
test_fractions.py
test_frame.py
test_frozen.py
test_fstring.py [3.10] bpo-44885: Correct the ast locations of f-strings with format specs and repeated expressions (GH-27729) (GH-27743) 2021-08-12 17:41:21 +01:00
test_ftplib.py bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905) (GH-26907) 2021-06-25 00:38:01 +01:00
test_funcattrs.py
test_functools.py bpo-44605: Teach @total_ordering() to work with metaclasses (GH-27633) (GH-27640) 2021-08-06 15:11:44 -05:00
test_future.py bpo-42725: Render annotations effectless on symbol table with PEP 563 (GH-25583) 2021-05-03 10:43:00 +03:00
test_future3.py
test_future4.py
test_future5.py
test_gc.py bpo-44184: Fix subtype_dealloc() for freed type (GH-26274) (GH-26290) 2021-05-22 00:50:11 +02:00
test_gdb.py
test_generator_stop.py
test_generators.py bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (GH-17658) (GH-27572) 2021-08-03 12:10:38 +02:00
test_genericalias.py bpo-44794: Merge tests for typing.Callable and collection.abc.Callable (GH-27507) 2021-07-31 10:25:22 -07:00
test_genericclass.py
test_genericpath.py
test_genexps.py bpo-43822: Improve syntax errors for missing commas (GH-25377) 2021-04-15 21:38:45 +01:00
test_getargs2.py bpo-40943: Fix skipitem() didn't raise SystemError (GH-25937) 2021-05-06 20:18:42 -07:00
test_getopt.py
test_getpass.py
test_gettext.py
test_glob.py
test_global.py
test_grammar.py bpo-44490: Improve typing module compatibility with types.Union (GH-27048) (#27222) 2021-07-19 07:22:59 -07:00
test_graphlib.py
test_grp.py
test_gzip.py bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol correctly (GH-26764) (GH-26845) 2021-06-22 16:59:53 +03:00
test_hash.py
test_hashlib.py [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) 2021-06-23 16:46:25 -07:00
test_heapq.py bpo-28395: Remove unnecessary semicolons in tests (GH-26868) 2021-06-23 03:02:40 -07:00
test_hmac.py [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) 2021-06-23 16:46:25 -07:00
test_html.py
test_htmlparser.py
test_http_cookiejar.py
test_http_cookies.py
test_httplib.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
test_httpservers.py bpo-44647: Fix test_httpservers failing on Unicode characters in os.environ on Windows (GH-27161) (#27169) 2021-07-15 22:09:26 +02:00
test_idle.py
test_imaplib.py bpo-43880: Show DeprecationWarnings for deprecated ssl module features (GH-25455) 2021-04-19 07:27:10 +02:00
test_imghdr.py
test_imp.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25181) 2021-04-05 13:11:23 +09:00
test_index.py
test_inspect.py bpo-44808: fixes test for interactive inspect getsource of a class (GH-27571) 2021-08-03 06:07:59 -07:00
test_int.py
test_int_literal.py
test_interpreters.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189) 2021-04-06 11:18:41 +09:00
test_io.py bpo-43680: Deprecate io.OpenWrapper (GH-25357) 2021-04-14 03:24:33 +02:00
test_ioctl.py
test_ipaddress.py bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172) 2021-05-17 12:42:08 -07:00
test_isinstance.py
test_iter.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189) 2021-04-06 11:18:41 +09:00
test_iterlen.py
test_itertools.py
test_keyword.py
test_keywordonlyarg.py
test_kqueue.py
test_largefile.py
test_lib2to3.py
test_linecache.py [3.10] bpo-25872: Add unit tests for linecache and threading (GH-25913) (GH-26212) 2021-05-18 14:53:57 +01:00
test_list.py
test_listcomps.py
test_lltrace.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189) 2021-04-06 11:18:41 +09:00
test_locale.py bpo-34311: Add locale.localize (GH-15275) 2021-04-12 14:17:40 +02:00
test_logging.py bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) (GH-27380) 2021-07-27 00:34:32 +02:00
test_long.py
test_longexp.py
test_lzma.py bpo-44439: BZ2File.write() / LZMAFile.write() handle buffer protocol correctly (GH-26764) (GH-26845) 2021-06-22 16:59:53 +03:00
test_mailbox.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25190) 2021-04-06 13:02:22 +09:00
test_mailcap.py
test_marshal.py
test_math.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) 2021-04-04 09:01:23 +09:00
test_memoryio.py
test_memoryview.py
test_metaclass.py
test_mimetypes.py bpo-44582: Accelerate mimetypes.init on Windows with a native accelerator (GH-27059) 2021-07-08 09:13:06 -07:00
test_minidom.py
test_mmap.py
test_module.py bpo-43901: Fix refleaks in test_module (GH-25754) 2021-04-30 17:26:45 +01:00
test_modulefinder.py
test_msilib.py
test_multibytecodec.py
test_multiprocessing_fork.py
test_multiprocessing_forkserver.py
test_multiprocessing_main_handling.py
test_multiprocessing_spawn.py
test_named_expressions.py
test_netrc.py
test_nis.py
test_nntplib.py bpo-43998: Fix testing without ssl module (GH-25790) 2021-05-01 22:17:01 +02:00
test_ntpath.py bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path (GH-25264) 2021-04-28 16:50:17 +01:00
test_numeric_tower.py
test_opcache.py
test_opcodes.py bpo-43901: Lazy-create an empty annotations dict in all unannotated user classes and modules (#25623) 2021-04-29 20:09:08 -07:00
test_openpty.py
test_operator.py bpo-44558: Match countOf is/== treatment to c (GH-27007) 2021-07-07 06:50:41 -07:00
test_optparse.py
test_ordered_dict.py
test_os.py bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905) (GH-26907) 2021-06-25 00:38:01 +01:00
test_ossaudiodev.py
test_osx_env.py
test_pathlib.py bpo-27827: identify a greater range of reserved filename on Windows. (GH-26698) (GH-27421) 2021-07-28 17:01:47 +02:00
test_patma.py bpo-44600: Refactor new tracing tests (GH-27396) (GH-27404) 2021-07-28 14:38:39 +02:00
test_pdb.py [3.10] bpo-44461: Check early that a pdb target is valid for execution. (GH-27227) (GH-27399) 2021-07-28 06:04:38 -07:00
test_peepholer.py
test_pickle.py bpo-44785: Silence deprecation warnings in test_pickle (GH-27538) 2021-08-02 10:09:05 -07:00
test_picklebuffer.py
test_pickletools.py
test_pipes.py
test_pkg.py
test_pkgutil.py bpo-43720: Update import-related stdlib deprecation messages to say they will be removed in Python 3.12 (GH-25167) 2021-04-03 15:31:15 -07:00
test_platform.py
test_plistlib.py
test_poll.py
test_popen.py
test_poplib.py bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905) (GH-26907) 2021-06-25 00:38:01 +01:00
test_positional_only_arg.py bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490) 2021-04-21 12:41:19 +01:00
test_posix.py bpo-43568: Drop support for MACOSX_DEPLOYMENT_TARGET < 10.3 (GH-25827) 2021-05-02 20:28:43 -04:00
test_posixpath.py bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path (GH-25264) 2021-04-28 16:50:17 +01:00
test_pow.py
test_pprint.py bpo-43080: pprint for dataclass instances (GH-24389) 2021-04-13 19:59:24 -04:00
test_print.py bpo-34013: Move the Python 2 hints from the exception constructor to the parser (GH-27392) 2021-07-27 14:19:18 -07:00
test_profile.py bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) 2021-04-04 09:01:23 +09:00
test_property.py
test_pstats.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
test_pty.py bpo-26228: Fix pty EOF handling (GH-12049) (GH-27732) 2021-08-12 14:36:04 +02:00
test_pulldom.py
test_pwd.py
test_py_compile.py [3.10] bpo-31904: Correct error string in test_file_not_exists() for VxWorks (GH-25965) (GH-25983) 2021-05-08 02:09:29 -07:00
test_pyclbr.py
test_pydoc.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
test_pyexpat.py
test_queue.py
test_quopri.py
test_raise.py
test_random.py bpo-44018: random.seed() no longer mutates its inputs (GH-25856) (GH-25872) 2021-05-03 19:45:30 -07:00
test_range.py
test_re.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
test_readline.py bpo-44949: Fix test_readline auto history tests (GH-27813) 2021-08-19 01:52:16 -07:00
test_regrtest.py bpo-44708: Only re-run test methods that match names of previously failing test methods (GH-27287) (GH-27290) 2021-07-22 22:30:44 +02:00
test_repl.py
test_reprlib.py bpo-43682: @staticmethod inherits attributes (GH-25268) 2021-04-09 17:51:22 +02:00
test_resource.py
test_richcmp.py
test_rlcompleter.py bpo-44752: Make rlcompleter not call @property methods (GH-27401) (GH-27444) 2021-07-29 14:07:00 +02:00
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 [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) 2021-06-23 16:46:25 -07:00
test_selectors.py
test_set.py bpo-28395: Remove unnecessary semicolons in tests (GH-26868) 2021-06-23 03:02:40 -07:00
test_setcomps.py
test_shelve.py
test_shlex.py
test_shutil.py [3.10] bpo-43219: skip Solaris in the test as well (GH-27257) (GH-27268) 2021-07-20 11:53:31 -07:00
test_signal.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
test_site.py bpo-36160: Fix test_site so that it can run independently of other tests (GH-12131) (GH-26262) 2021-05-20 11:42:00 +01:00
test_slice.py
test_smtpd.py bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905) (GH-26907) 2021-06-25 00:38:01 +01:00
test_smtplib.py bpo-44498: suppress DeprecationWarnings for asynchat, asyncore and smtpd in tests (GH-26905) (GH-26907) 2021-06-25 00:38:01 +01:00
test_smtpnet.py
test_sndhdr.py
test_socket.py bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079) 2021-07-14 16:15:31 -07:00
test_socketserver.py bpo-43843: libregrtest uses threading.excepthook (GH-25400) 2021-04-16 14:33:10 +02:00
test_sort.py
test_source_encoding.py bpo-25643: Refactor the C tokenizer into smaller, logical units (GH-25050) 2021-03-28 23:48:05 +01:00
test_spwd.py
test_sqlite.py
test_ssl.py bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) (GH-27380) 2021-07-27 00:34:32 +02:00
test_startfile.py bpo-43538: Add extra arguments to os.startfile (GH-25538) 2021-04-23 18:03:17 +01:00
test_stat.py
test_statistics.py bpo-44151: linear_regression() minor API improvements (GH-26199) (GH-26338) 2021-05-24 18:11:12 -07:00
test_strftime.py
test_string.py
test_string_literals.py
test_stringprep.py
test_strptime.py
test_strtod.py
test_struct.py
test_structmembers.py
test_structseq.py
test_subclassinit.py
test_subprocess.py bpo-28254: Cleanup test_subprocess.test_preexec_gc_module_failure() (GH-25709) 2021-04-29 10:26:53 +02:00
test_sunau.py
test_sundry.py
test_super.py
test_support.py [3.10] bpo-44852: Support ignoring specific DeprecationWarnings wholesale in regrtest (GH-27634) (GH-27784) 2021-08-17 12:01:00 +02:00
test_symtable.py
test_syntax.py bpo-45000: Raise SyntaxError when try to delete __debug__ (GH-27947) (GH-27957) 2021-08-26 10:52:21 +01:00
test_sys.py bpo-43916: Add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag (GH-25721) 2021-04-30 12:46:15 +02:00
test_sys_setprofile.py
test_sys_settrace.py bpo-44840: Compiler: Move duplication of exit blocks with no line numbers to after CFG optimization. (GH-27656) (#27673) 2021-08-09 10:54:48 +01:00
test_sysconfig.py bpo-43312: Functions returning default and preferred sysconfig schemes (GH-24644) 2021-04-27 09:45:55 +01:00
test_syslog.py
test_tabnanny.py
test_tarfile.py bpo-32695: Docs and tests for compresslevel and preset kwargs in tarfile (GH-21470) 2021-08-09 03:30:30 -07:00
test_tcl.py bpo-44608: Fix memory leak in _tkinter._flatten() (GH-27107) 2021-07-13 22:40:10 -07:00
test_telnetlib.py bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361) 2021-04-12 13:12:36 +02:00
test_tempfile.py
test_textwrap.py
test_thread.py
test_threadedtempfile.py
test_threading.py bpo-44584: Deprecate PYTHONTHREADDEBUG env var (GH-27065) 2021-08-06 04:32:37 -07:00
test_threading_local.py
test_threadsignals.py
test_time.py
test_timeit.py
test_timeout.py
test_tix.py Revert test for Tix deprecation warning (GH-26005) 2021-05-09 00:19:43 -07:00
test_tk.py
test_tokenize.py bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499) (GH-27500) 2021-08-02 11:43:45 +02:00
test_trace.py
test_traceback.py [3.10] bpo-44446: support lineno being None in traceback.FrameSummary (GH-26781) (GH-27072) 2021-07-08 17:47:12 +01:00
test_tracemalloc.py
test_ttk_guionly.py
test_ttk_textonly.py
test_tuple.py
test_turtle.py bpo-44734: Fix precision in turtle tests (GH-27343) (GH-27361) 2021-07-26 17:55:50 +02:00
test_type_annotations.py bpo-43901: Lazy-create an empty annotations dict in all unannotated user classes and modules (#25623) 2021-04-29 20:09:08 -07:00
test_type_comments.py
test_typechecks.py
test_types.py bpo-44676: Serialize the union type using only public API (GH-27323) (GH-27340) 2021-07-24 22:35:33 +03:00
test_typing.py bpo-44524: Don't modify MRO when inheriting from typing.Annotated (GH-27841) 2021-08-25 11:36:47 -07:00
test_ucn.py
test_unary.py
test_unicode.py bpo-44891: Tests id preserving on * 1 for str and bytes (GH-27745) 2021-08-13 04:04:08 -07:00
test_unicode_file.py
test_unicode_file_functions.py
test_unicode_identifiers.py
test_unicodedata.py [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) 2021-06-23 16:46:25 -07:00
test_unittest.py
test_univnewlines.py
test_unpack.py
test_unpack_ex.py bpo-43797: Improve syntax error for invalid comparisons (#25317) 2021-04-12 16:59:30 +01:00
test_unparse.py bpo-43892: Make match patterns explicit in the AST (GH-25585) 2021-04-28 22:58:44 -07:00
test_urllib.py bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539) 2021-04-23 18:02:47 +01:00
test_urllib2.py
test_urllib2_localnet.py
test_urllib2net.py bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) (GH-27380) 2021-07-27 00:34:32 +02:00
test_urllib_response.py
test_urllibnet.py
test_urlparse.py bpo-43882 Remove the newline, and tab early. From query and fragments. (GH-25936) 2021-05-05 16:04:38 -07:00
test_userdict.py
test_userlist.py
test_userstring.py
test_utf8_mode.py
test_utf8source.py
test_uu.py
test_uuid.py [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010) 2021-07-03 21:08:42 -07:00
test_venv.py
test_wait3.py
test_wait4.py
test_wave.py
test_weakref.py bpo-44720: Don't crash when calling weakref.proxy(not_an_iterator).__next__ (GH-27316) (GH-27324) 2021-07-24 11:45:13 +02:00
test_weakset.py
test_webbrowser.py
test_winconsoleio.py
test_winreg.py
test_winsound.py
test_with.py
test_wsgiref.py
test_xdrlib.py
test_xml_dom_minicompat.py
test_xml_etree.py bpo-43399: Fix ElementTree.extend not working on iterators (GH-24751) 2021-03-31 00:11:29 +03:00
test_xml_etree_c.py
test_xmlrpc.py bpo-43433: Preserve query and fragment in the URL of the server in ServerProxy. (GH-25057) 2021-03-29 22:39:31 +09:00
test_xmlrpc_net.py
test_xxlimited.py
test_xxtestfuzz.py
test_yield_from.py
test_zipapp.py
test_zipfile.py bpo-43651: Fix EncodingWarning in zipfile (GH-25650) 2021-04-27 15:45:31 +09:00
test_zipfile64.py
test_zipimport.py [3.10] bpo-34990: Treat the pyc header's mtime in compileall as an unsigned int (GH-19708) 2021-08-24 11:09:14 -04:00
test_zipimport_support.py
test_zlib.py [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) (GH-26885) 2021-06-23 16:46:25 -07:00
testcodec.py
testtar.tar
testtar.tar.xz bpo-8978: improve tarfile.open error message when lzma / bz2 are missing (GH-24850) 2021-04-27 10:39:01 -07:00
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
win_console_handler.py
xmltests.py
zip_cp437_header.zip
zipdir.zip