cpython/Lib/test
Hugo van Kemenade 869069d52c
[3.12] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503) (#158513)
* [3.12] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503)
(cherry picked from commit 1697ea386c)

* Raise a DeprecationWarning instead of ValueError

Co-authored-by: Seth Larson <seth@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: T. Wouters <thomas@python.org>
2026-09-30 23:29:07 +02:00
..
audiodata
certdata
cjkencodings
configdata
crashers
data
decimaltestdata
dtracedata
encoded_modules
imghdrdata
leakers
libregrtest
regrtestdata/import_from_tests
sndhdrdata
subprocessdata
support [3.12] GH-157579: Revert GH-158489 (prematurely merged) (#158528) 2026-09-30 21:36:13 +02:00
test_ast
test_asyncio [3.12] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503) (#158513) 2026-09-30 23:29:07 +02:00
test_capi
test_cext
test_concurrent_futures
test_cppext
test_ctypes [3.12] gh-157983: Skip test for ctypes.util.find_library when ld is mold (GH-157984) (GH-158065) 2026-09-24 13:52:29 +02:00
test_dataclasses
test_doctest
test_email [3.12] gh-144125: email: verify headers are sound in BytesGenerator 2026-02-13 16:04:54 +00:00
test_future_stmt
test_gdb
test_import
test_importlib
test_inspect
test_json
test_lib2to3
test_module
test_multiprocessing_fork
test_multiprocessing_forkserver
test_multiprocessing_spawn
test_peg_generator
test_pydoc
test_sqlite3
test_tkinter [3.12] gh-146531: Broaden wm_iconbitmap skip on macOS 26 Intel (GH-153348) (#153453) 2026-07-09 18:41:46 +00:00
test_tomllib [3.12] gh-149231: tomllib: Limit the number of parts in a key (GH-149233) (GH-149815) (#154143) 2026-08-04 11:30:11 +02:00
test_tools
test_ttk
test_unittest
test_warnings
test_zipfile [3.12] gh-156002: Bound zipfile decompression for bzip2/LZMA/Zstandard (GH-156003) (GH-156362) (#156739) 2026-09-30 22:55:10 +02:00
test_zoneinfo
tokenizedata
tracedmodules
translationdata
typinganndata
wheeldata [3.12] gh-132415: Update vendored setuptools in `Lib/test/wheeldata (GH-132887) (GH-135393) 2025-06-11 17:28:51 +02:00
xmltestdata
ziptestdata
.ruff.toml
__init__.py
__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
empty.vbs
exception_hierarchy.txt
floating_points.txt
fork_wait.py
formatfloat_testcases.txt
ieee754.txt
levenshtein_examples.json
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
mp_preload.py
multibytecodec_support.py
pickletester.py
profilee.py
pstats.pck
pyclbr_input.py
pythoninfo.py [3.12] gh-145548: Use VMADDR_CID_LOCAL in VSOCK socket tests (GH-145589) (#145809) 2026-04-15 15:41:03 +02:00
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
recursion.tar
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__xxinterpchannels.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_asyncgen.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.12] gh-150599: Prevent bz2 decompressor reuse after errors (#150600) (#151057) 2026-08-04 11:22:54 +02:00
test_c_locale_coercion.py
test_calendar.py
test_call.py
test_cgi.py
test_cgitb.py
test_charmapcodec.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 [3.12] gh-133767: Fix use-after-free in the unicode-escape decoder with an error handler (GH-129648) (GH-133944) (#134337) 2025-05-25 20:33:22 -07: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 [3.12] gh-155292: Don't consider Unicode codepoint attributes outside RFC 3454 (GH-155293) (GH-156020) (#156930) 2026-09-08 15:41:59 +02:00
test_codeop.py
test_collections.py
test_colorsys.py
test_compare.py
test_compile.py
test_compileall.py
test_compiler_assemble.py
test_compiler_codegen.py
test_complex.py
test_configparser.py [3.12] gh-156353: Fix configparser space delimiter parsing (GH-156382) (#156560) 2026-09-08 15:29:02 +02: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.12] gh-98820: Fix quadratic time in csv.Sniffer for quoted fields (GH-154867) (#155166) 2026-08-04 12:15:52 +02:00
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_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.12] gh-158446: Reject float format precision near INT_MAX (GH-158474) (#158479) 2026-09-30 17:00:00 +02:00
test_fractions.py
test_frame.py
test_frozen.py
test_fstring.py
test_ftplib.py [3.12] gh-87451: Apply CVE-2021-4189 PASV fix to ftplib.ftpcp() (GH-149648) (#149795) 2026-05-18 19:59:42 +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 [3.12] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) (GH-140847) 2025-10-31 17:50:42 +01:00
test_genexps.py
test_getopt.py
test_getpass.py
test_getpath.py
test_gettext.py
test_glob.py
test_global.py
test_grammar.py
test_graphlib.py
test_grp.py
test_gzip.py
test_hash.py
test_hashlib.py
test_heapq.py
test_hmac.py
test_html.py
test_htmlparser.py [3.12] gh-153030: Fix quadratic complexity in incremental parsing in HTMLParser (GH-153031) (#153041) 2026-08-04 11:28:28 +02:00
test_http_cookiejar.py
test_http_cookies.py [3.12] gh-145599, CVE 2026-3644: Reject control characters in http.cookies.Morsel.update() (GH-145600) (#146025) 2026-08-04 11:16:44 +02:00
test_httplib.py [3.12] gh-150743: Limit trailer lines and interim responses read by http.client (GH-150749) (#152527) 2026-08-04 11:27:42 +02:00
test_httpservers.py [3.12] gh-119452: Fix a potential virtual memory allocation denial of service in http.server (GH-142216) (#142297) 2025-12-15 15:11:38 +01:00
test_idle.py
test_imaplib.py
test_imghdr.py
test_index.py
test_int.py
test_int_literal.py
test_interpreters.py
test_io.py
test_ioctl.py
test_ipaddress.py [3.12] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH-134836) (GH-134847) 2025-06-03 16:25:28 +02:00
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_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_math_property.py
test_memoryio.py
test_memoryview.py
test_metaclass.py
test_mimetypes.py [3.12] gh-101137: Add text/x-rst to mimetypes (GH-118593) (GH-118599) 2025-04-08 12:40:41 +02:00
test_minidom.py [3.12] gh-142145: Remove quadratic behavior in node ID cache clearing (GH-142146) (#142211) 2025-12-22 14:48:49 +01:00
test_mmap.py
test_modulefinder.py
test_monitoring.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 [3.12] gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952) (GH-140847) 2025-10-31 17:50:42 +01:00
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_perf_profiler.py [3.12] gh-131038: Use text=True in subprocesses in test_perf_profiler (#137117) (#138024) 2025-08-21 15:18:35 +01:00
test_perfmaps.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 [3.12] gh-119342: Fix a potential denial of service in plistlib (GH-119343) (#142149) 2025-12-22 14:49:44 +01:00
test_poll.py
test_popen.py
test_poplib.py
test_positional_only_arg.py
test_posix.py
test_posixpath.py [3.12] gh-135034: Normalize link targets in tarfile, add os.path.realpath(strict='allow_missing') (GH-135037) (GH-135066) 2025-06-03 16:00:21 +02:00
test_pow.py
test_pprint.py
test_print.py
test_profile.py
test_property.py
test_pstats.py
test_pty.py
test_pulldom.py
test_pwd.py
test_py_compile.py
test_pyclbr.py
test_pyexpat.py [3.12] gh-90949: expose Expat API to tune exponential expansion protections (GH-139368) (#151401) 2026-08-04 11:23:51 +02: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.12] GH-157579: Revert GH-158489 (prematurely merged) (#158528) 2026-09-30 21:36:13 +02:00
test_signal.py
test_site.py
test_slice.py
test_smtplib.py
test_smtpnet.py
test_sndhdr.py
test_socket.py [3.12] gh-149776: Skip UDP Lite tests if it's not supported (#149777) (#153592) 2026-08-04 11:29:09 +02:00
test_socketserver.py
test_sort.py
test_source_encoding.py
test_spwd.py
test_ssl.py [3.12] gh-156793: Validate SSLContext.wrap_bio() parameters like wrap_socket() (GH-158503) (#158513) 2026-09-30 23:29:07 +02: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 [3.12] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135400) 2025-07-09 00:40:55 +01:00
test_sys.py
test_sys_setprofile.py
test_sys_settrace.py
test_sysconfig.py
test_syslog.py
test_tabnanny.py
test_tarfile.py [3.12] gh-157265: tarfile: Honor None result of filter for link fallbacks (GH-157266) (#157305) 2026-09-30 22:23:33 +02:00
test_tcl.py
test_telnetlib.py
test_tempfile.py [3.12] GH-157579: Revert GH-158489 (prematurely merged) (#158528) 2026-09-30 21:36:13 +02:00
test_termios.py
test_textwrap.py
test_thread.py
test_threadedtempfile.py
test_threading.py
test_threading_local.py
test_threadsignals.py
test_time.py
test_timeit.py
test_timeout.py
test_tix.py
test_tokenize.py
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
test_type_comments.py
test_type_params.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.12] gh-155292: Don't consider Unicode codepoint attributes outside RFC 3454 (GH-155293) (GH-156020) (#156930) 2026-09-08 15:41:59 +02:00
test_univnewlines.py
test_unpack.py
test_unpack_ex.py
test_unparse.py
test_urllib.py [3.12] gh-143925: Reject control characters in data: URL mediatypes (#144113) 2026-01-25 17:05:57 +00:00
test_urllib2.py [3.12] gh-155694: Scope HTTPPasswordMgr credentials by URL scheme (GH-155696) (#155971) 2026-08-20 16:19:40 +02: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.12] gh-148169: Fix webbrowser %action substitution bypass of dash-prefix check (GH-148170) (#148519) 2026-08-04 11:19:00 +02:00
test_winapi.py
test_winconsoleio.py
test_winreg.py
test_winsound.py
test_with.py
test_wmi.py
test_wsgiref.py [3.12] gh-144370: Disallow usage of control characters in status in wsgiref.handlers for security (GH-144371) (#145671) 2026-08-04 11:15:13 +02:00
test_xdrlib.py
test_xml_dom_minicompat.py
test_xml_dom_xmlbuilder.py
test_xml_etree.py [3.12] gh-152674: Avoid quadratic behavior in xml.etree.ElementPath index predicates (GH-152676) (#154815) 2026-08-04 11:30:44 +02: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_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
zipdir.zip
zipdir_backslash.zip