cpython/Lib/test
Miss Islington (bot) 26ee788118
[3.11] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#159065)
gh-87720 Fix additional header refolding-quoting edge case (GH-134271)

In this case, the higher level syntactic unit fit on the remainder of
the line in un-encoded format, and that higher level unit was
not a ptext or vtext, so the encoding check failed.  To fix this, we
look inside the current unit to see if has anything that was
originally encoded.
(cherry picked from commit 5a22a62b96)

Co-authored-by: R. David Murray <rdmurray@bitdance.com>
2026-10-25 12:37:37 -07:00
..
audiodata
certdata [3.11] gh-160040: Distrust compromised eMudhra intermediate CA keys (CVE-2026-115557) (GH-160042) (GH-160572) 2026-10-24 16:10:44 -07:00
cjkencodings
configdata
crashers
data
decimaltestdata
dtracedata
encoded_modules
imghdrdata
leakers
libregrtest
regrtestdata/import_from_tests
sndhdrdata
subprocessdata
support [3.11] gh-157190: Fix tarfile data/tar filter bypass via hard link to a symlink (GH-157191) (#158455) 2026-09-30 00:40:33 +01:00
test_asyncio [3.11] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503) (#158532) 2026-10-01 01:30:27 +01:00
test_capi
test_concurrent_futures
test_cppext
test_dataclasses
test_doctest
test_email [3.11] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#159065) 2026-10-25 12:37:37 -07:00
test_future_stmt
test_gdb [3.11] gh-159914: Ignore gdb stderr in test_gdb.test_pretty_print (GH-159916) (GH-160201) (#160651) 2026-10-25 11:09:38 -07:00
test_import
test_importlib
test_inspect
test_json
test_module [3.11] gh-81682: Fix test failures when CPython is built without docstrings (GH-113410) (GH-113430) 2023-12-23 11:38:07 +00:00
test_multiprocessing_fork
test_multiprocessing_forkserver
test_multiprocessing_spawn
test_peg_generator
test_pydoc
test_sqlite3
test_tomllib [3.11] gh-149231: tomllib: Limit the number of parts in a key (GH-149233) (GH-149815) (#154943) 2026-08-10 18:09:33 +01:00
test_tools
test_warnings
test_zoneinfo
tokenizedata
tracedmodules
typinganndata
xmltestdata
ziptestdata
.ruff.toml
__init__.py Add __init__.py to test package. 1997-11-06 15:41:23 +00:00
__main__.py
_test_atexit.py
_test_eintr.py
_test_embed_set_config.py
_test_embed_structseq.py
_test_multiprocessing.py
_test_venv_multiprocessing.py
archiver_tests.py
audiotest.au
audiotests.py
audit-tests.py
autotest.py
bisect_cmd.py
clinic.test.c
cmath_testcases.txt
curses_tests.py
datetimetester.py
dis_module.py Merged revisions 55631-55794 via svnmerge from 2007-06-06 23:52:48 +00:00
empty.vbs
exception_hierarchy.txt
floating_points.txt
fork_wait.py
formatfloat_testcases.txt
ieee754.txt
imp_dummy.py
list_tests.py
lock_tests.py
mailcap.txt
mapping_tests.py
math_testcases.txt
memory_watchdog.py
mime.types
mock_socket.py
mp_fork_bomb.py Issue #8713: Support alternative start methods in multiprocessing on Unix. 2013-08-14 15:35:41 +01:00
mp_preload.py Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks. 2016-12-10 17:13:16 +01:00
multibytecodec_support.py
pickletester.py
profilee.py
pstats.pck
pyclbr_input.py
pythoninfo.py [3.11] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (GH-145809) (#148616) 2026-08-12 23:57:07 +01:00
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
recursion.tar bpo-39017: Avoid infinite loop in the tarfile module (GH-21454) 2020-07-15 13:51:00 +02:00
regrtest.py
relimport.py
reperf.py
seq_tests.py
signalinterproctester.py
Sine-1000Hz-300ms.aif
ssl_servers.py
ssltests.py
string_tests.py
test___all__.py
test__locale.py
test__opcode.py
test__osx_support.py
test__xxsubinterpreters.py
test_abc.py
test_abstract_numbers.py
test_aifc.py
test_argparse.py
test_array.py
test_asdl_parser.py
test_ast.py
test_asyncgen.py
test_asynchat.py
test_asyncore.py
test_atexit.py
test_audioop.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
test_binop.py
test_bisect.py
test_bool.py
test_buffer.py
test_bufio.py
test_builtin.py
test_bytes.py
test_bz2.py [3.11] gh-150599: Prevent bz2 decompressor reuse after errors (#150600) (#151132) 2026-08-10 20:53:04 +01:00
test_c_locale_coercion.py
test_calendar.py
test_call.py
test_cgi.py
test_cgitb.py
test_charmapcodec.py
test_check_c_globals.py
test_class.py
test_clinic.py
test_cmath.py
test_cmd.py
test_cmd_line.py
test_cmd_line_script.py
test_code.py
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 [3.11] gh-155292: Don't consider Unicode codepoint attributes outside RFC 3454 (GH-155293) (GH-156020) (#156931) 2026-10-01 01:29:41 +01:00
test_codeop.py
test_collections.py
test_colorsys.py
test_compare.py
test_compile.py
test_compileall.py
test_complex.py
test_configparser.py [3.11] gh-156353: Fix configparser space delimiter parsing (GH-156382) (#156561) 2026-10-01 01:30:23 +01: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_crashers.py
test_crypt.py
test_csv.py [3.11] gh-98820: Fix quadratic time in csv.Sniffer for quoted fields (GH-154867) (#155538) 2026-08-11 17:06:40 +01:00
test_ctypes.py
test_curses.py
test_datetime.py
test_dbm.py
test_dbm_dumb.py
test_dbm_gnu.py
test_dbm_ndbm.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_distutils.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_faulthandler.py
test_fcntl.py
test_file.py
test_file_eintr.py
test_filecmp.py
test_fileinput.py
test_fileio.py
test_fileutils.py
test_finalization.py
test_float.py
test_flufl.py
test_fnmatch.py
test_fork1.py
test_format.py [3.11] gh-158446: Reject float format precision near INT_MAX (GH-158474) (#158480) 2026-10-01 01:29:11 +01:00
test_fractions.py
test_frame.py
test_frozen.py
test_fstring.py
test_ftplib.py [3.11] gh-87451: Apply CVE-2021-4189 PASV fix to ftplib.ftpcp() (GH-149648) (#149796) 2026-06-27 19:57:53 +02:00
test_funcattrs.py
test_functools.py
test_gc.py
test_generator_stop.py
test_generators.py
test_genericalias.py
test_genericclass.py
test_genericpath.py
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 [3.11] gh-153030: Fix quadratic complexity in incremental parsing in HTMLParser (GH-153031) (#153042) 2026-08-10 20:53:23 +01:00
test_http_cookiejar.py [3.11] gh-160300: Reject cookies with a negative version in http.cookiejar (GH-160301) (#160649) 2026-10-25 12:35:37 -07:00
test_http_cookies.py [3.11] gh-145599, CVE 2026-3644: Reject control characters in http.cookies.Morsel.update() (GH-145600) (#146026) 2026-06-28 23:16:33 +01:00
test_httplib.py [3.11] gh-150743: Limit trailer lines and interim responses read by http.client (GH-150749) (#152528) 2026-06-28 22:50:25 +02:00
test_httpservers.py
test_idle.py
test_imaplib.py
test_imghdr.py
test_imp.py
test_index.py
test_int.py
test_int_literal.py
test_interpreters.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
test_lib2to3.py
test_linecache.py
test_list.py
test_listcomps.py
test_lltrace.py
test_locale.py
test_logging.py
test_long.py
test_longexp.py
test_lzma.py
test_mailbox.py
test_mailcap.py
test_marshal.py
test_math.py
test_memoryio.py
test_memoryview.py
test_metaclass.py
test_mimetypes.py [3.11] gh-159428: Don't read mimetypes.knownfiles by default on Windows (GH-159445) (#159573) 2026-10-25 12:37:12 -07:00
test_minidom.py
test_mmap.py
test_modulefinder.py
test_msilib.py
test_multibytecodec.py
test_multiprocessing_main_handling.py
test_named_expressions.py
test_netrc.py
test_nis.py
test_nntplib.py
test_ntpath.py
test_numeric_tower.py
test_opcache.py
test_opcodes.py
test_openpty.py
test_operator.py
test_optparse.py
test_ordered_dict.py
test_os.py
test_ossaudiodev.py
test_osx_env.py
test_pathlib.py
test_patma.py
test_pdb.py
test_peepholer.py
test_pep646_syntax.py
test_pickle.py
test_picklebuffer.py
test_pickletools.py
test_pipes.py
test_pkg.py
test_pkgutil.py
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
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 [3.11] gh-90949: expose Expat API to tune exponential expansion protections (GH-139368) (GH-151401) (#155346) 2026-08-09 17:32:33 +01:00
test_queue.py
test_quopri.py
test_raise.py
test_random.py
test_range.py
test_re.py
test_readline.py
test_regrtest.py
test_repl.py
test_reprlib.py
test_resource.py
test_richcmp.py
test_rlcompleter.py
test_robotparser.py
test_runpy.py
test_sax.py
test_sched.py
test_scope.py
test_script_helper.py
test_secrets.py
test_select.py
test_selectors.py
test_set.py
test_setcomps.py
test_shelve.py
test_shlex.py
test_shutil.py [3.11] gh-146581: Fix vulnerability in shutil.unpack_archive() for ZIP files on Windows (GH-146591) (#149071) 2026-08-09 17:32:23 +01:00
test_signal.py
test_site.py
test_slice.py
test_smtpd.py
test_smtplib.py
test_smtpnet.py
test_sndhdr.py
test_socket.py [3.11] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (GH-145809) (#148616) 2026-08-12 23:57:07 +01:00
test_socketserver.py
test_sort.py
test_source_encoding.py
test_spwd.py
test_ssl.py [3.11] gh-160040: Distrust compromised eMudhra intermediate CA keys (CVE-2026-115557) (GH-160042) (GH-160572) 2026-10-24 16:10:44 -07:00
test_stable_abi_ctypes.py
test_startfile.py
test_stat.py
test_statistics.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
test_sunau.py
test_sundry.py
test_super.py
test_support.py
test_symtable.py
test_syntax.py
test_sys.py
test_sys_setprofile.py
test_sys_settrace.py
test_sysconfig.py
test_syslog.py
test_tabnanny.py
test_tarfile.py [3.11] gh-160097: Reject links replacing the destination in tarfile.tar_filter (GH-160098) (#160343) 2026-10-25 11:15:45 -07:00
test_tcl.py
test_telnetlib.py
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_tix.py
test_tk.py
test_tokenize.py
test_trace.py
test_traceback.py
test_tracemalloc.py
test_ttk_guionly.py
test_ttk_textonly.py
test_tty.py
test_tuple.py
test_turtle.py
test_type_annotations.py
test_type_cache.py
test_type_comments.py
test_typechecks.py
test_types.py
test_typing.py
test_ucn.py
test_unary.py
test_unicode.py
test_unicode_file.py
test_unicode_file_functions.py
test_unicode_identifiers.py
test_unicodedata.py [3.11] gh-155292: Don't consider Unicode codepoint attributes outside RFC 3454 (GH-155293) (GH-156020) (#156931) 2026-10-01 01:29:41 +01:00
test_unittest.py
test_univnewlines.py
test_unpack.py
test_unpack_ex.py
test_unparse.py
test_urllib.py
test_urllib2.py [3.11] gh-155694: Scope HTTPPasswordMgr credentials by URL scheme (GH-155696) (#155972) 2026-10-01 01:27:46 +01:00
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_uu.py
test_uuid.py
test_venv.py
test_wait3.py
test_wait4.py
test_wave.py
test_weakref.py
test_weakset.py
test_webbrowser.py [3.11] gh-148169: Fix webbrowser %action substitution bypass of dash-prefix check (GH-148170) (#148520) 2026-04-13 22:41:51 +01:00
test_winconsoleio.py
test_winreg.py
test_winsound.py
test_with.py
test_wsgiref.py [3.11] gh-144370: Disallow usage of control characters in status in wsgiref.handlers for security (#144371) (#145672) 2026-05-17 11:33:30 -07:00
test_xdrlib.py
test_xml_dom_minicompat.py
test_xml_etree.py [3.11] gh-152674: Avoid quadratic behavior in xml.etree.ElementPath index predicates (GH-152676) (#154813) 2026-08-10 20:53:19 +01:00
test_xml_etree_c.py
test_xmlrpc.py
test_xmlrpc_net.py
test_xxlimited.py
test_xxtestfuzz.py
test_yield_from.py
test_zipapp.py
test_zipfile.py [3.11] gh-156002: Bound zipfile decompression for bzip2/LZMA/Zstandard (GH-156003) (GH-156362) (#156740) 2026-10-01 01:30:19 +01:00
test_zipfile64.py
test_zipimport.py
test_zipimport_support.py
test_zlib.py
testcodec.py
testtar.tar
testtar.tar.xz
tf_inherit_check.py
time_hashlib.py
win_console_handler.py
xmltests.py
zip_cp437_header.zip #10801: In zipfile, support different encodings for the header and the filenames. Patch by MvL, test by Eli Bendersky. 2011-01-01 10:09:32 +00:00
zipdir.zip Merged revisions 68885 via svnmerge from 2009-01-24 14:10:07 +00:00
zipdir_backslash.zip