cpython/Lib/test
Victor Stinner 6be848922b
bpo-44133: Link Python executable with object files (GH-30556)
When Python is built without --enable-shared, the "python" program is
now linked to object files, rather than being linked to the Python
library (libpython.a), to make sure that all symbols are exported.
Previously, the linker omitted some symbols like the Py_FrozenMain()
function.

When Python is configured with --without-static-libpython, the Python
static library (libpython.a) is no longer built.

* Check --without-static-libpython earlier in configure.ac
* Add LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variables to Makefile.
* test_capi now ensures that the "Py_FrozenMain" symbol is exported.
2022-01-13 19:24:28 +01:00
..
audiodata
capath
cjkencodings
crashers
data
decimaltestdata
dtracedata
encoded_modules
imghdrdata
leakers
libregrtest bpo-46205: exit if no workers are alive in runtest_mp (GH-30470) 2022-01-11 12:03:09 +09:00
sndhdrdata
subprocessdata
support Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951) 2021-12-07 12:31:04 +01:00
test_asyncio bpo-46358: modernize test_asyncio (GH-30562) 2022-01-13 23:28:02 +09:00
test_email bpo-19460: Add test for MIMENonMultipart (GH-29817) 2021-11-28 11:24:41 +02:00
test_import
test_importlib bpo-46118: Move importlib.resources to its own package. (#30176) 2021-12-30 21:00:48 -05:00
test_json bpo-45644: Make json.tool read infile before writing to outfile (GH-29273) 2021-11-06 18:11:35 +01:00
test_peg_generator
test_sqlite3 bpo-44092: Don't reset statements/cursors before rollback (GH-26026) 2022-01-03 19:02:39 +00:00
test_tools bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455) 2022-01-13 09:46:38 +01:00
test_warnings
test_zoneinfo
tracedmodules
xmltestdata
ziptestdata
__init__.py
__main__.py
_test_atexit.py bpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH-30002) 2021-12-09 13:53:44 +00:00
_test_eintr.py
_test_embed_set_config.py bpo-45582: Port getpath[p].c to Python (GH-29041) 2021-12-03 00:08:42 +00:00
_test_multiprocessing.py bpo-25066: Added repr for multiprocessing.Event (GH-29749) 2021-12-09 13:16:45 +00:00
_typed_dict_helper.py
allsans.pem
ann_module.py
ann_module2.py
ann_module3.py
ann_module4.py
ann_module5.py
ann_module6.py
audiotest.au
audiotests.py
audit-tests.py
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
dataclass_module_1_str.py
dataclass_module_2.py
dataclass_module_2_str.py
dataclass_textanno.py
datetimetester.py
dis_module.py
doctest_aliases.py
double_const.py
empty.vbs
exception_hierarchy.txt
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
ieee754.txt
imp_dummy.py
inspect_fodder.py
inspect_fodder2.py
inspect_stock_annotations.py
inspect_stringized_annotations.py
inspect_stringized_annotations_2.py
keycert.passwd.pem
keycert.pem
keycert2.pem
keycert3.pem
keycert4.pem
keycertecc.pem
list_tests.py
lock_tests.py
mailcap.txt
make_ssl_certs.py Fix a typo in the message from make_ssl_certs. (GH-30152) 2021-12-16 21:08:18 -08:00
mapping_tests.py
math_testcases.txt
memory_watchdog.py
mime.types
mock_socket.py Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951) 2021-12-07 12:31:04 +01:00
mod_generics_cache.py bpo-46348: modernize test_typing (GH-30547) 2022-01-12 08:48:10 -08:00
mp_fork_bomb.py
mp_preload.py
multibytecodec_support.py
nokia.pem
nosan.pem
nullbytecert.pem
nullcert.pem
pickletester.py
profilee.py
pstats.pck
pycacert.pem
pycakey.pem
pyclbr_input.py
pydoc_mod.py
pydocfodder.py
pythoninfo.py
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
recursion.tar
regrtest.py
relimport.py
reperf.py
revocation.crl
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
string_tests.py
talos-2019-0758.pem
test___all__.py
test___future__.py
test__locale.py
test__opcode.py bpo-46072: Add top level stats struct (GH-30169) 2021-12-17 14:48:01 +00:00
test__osx_support.py
test__xxsubinterpreters.py
test_abc.py
test_abstract_numbers.py
test_aifc.py
test_argparse.py bpo-22047: [argparse] deprecate nested argument groups and mutually exclusive groups (GH-30098) 2021-12-16 15:31:08 +00:00
test_array.py
test_asdl_parser.py
test_ast.py bpo-45292: [PEP-654] add except* (GH-29581) 2021-12-14 16:48:15 +00:00
test_asyncgen.py
test_asynchat.py Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951) 2021-12-07 12:31:04 +01:00
test_asyncore.py Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951) 2021-12-07 12:31:04 +01:00
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
test_c_locale_coercion.py
test_calendar.py bpo-46266: Add calendar day of week constants to __all__ (GH-30412) 2022-01-05 14:21:04 -06:00
test_call.py
test_capi.py bpo-44133: Link Python executable with object files (GH-30556) 2022-01-13 19:24:28 +01:00
test_cgi.py bpo-45874: Handle empty query string correctly in urllib.parse.parse_qsl (#29716) 2021-12-12 10:41:12 +02:00
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 bpo-45923: Handle call events in bytecode (GH-30364) 2022-01-06 13:09:25 +00: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 bpo-46303: Move fileutils.h private functions to internal C API (GH-30484) 2022-01-11 11:56:16 +01:00
test_codeop.py
test_collections.py bpo-45859: Mark test_field_descriptor in test_collections as CPython-only (GH-29691) 2021-11-22 08:44:57 -06:00
test_colorsys.py
test_compare.py
test_compile.py bpo-45923: Handle call events in bytecode (GH-30364) 2022-01-06 13:09:25 +00:00
test_compileall.py
test_complex.py
test_concurrent_futures.py bpo-20369: concurrent.futures.wait() now deduplicates futures given a… (GH-30168) 2022-01-04 13:36:13 +00:00
test_configparser.py
test_contains.py
test_context.py
test_contextlib.py
test_contextlib_async.py
test_copy.py
test_copyreg.py
test_coroutines.py bpo-45813: Drop redundant assertion from frame.clear() (GH-29990) 2021-12-08 16:05:00 +00:00
test_cprofile.py
test_crashers.py
test_crypt.py
test_csv.py
test_ctypes.py
test_curses.py
test_dataclasses.py bpo-44674: Use unhashability as a proxy for mutability for default dataclass __init__ arguments. (GH-29867) 2021-12-11 16:12:17 -05:00
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 bpo-46299: Improve test_descr (GH-30475) 2022-01-08 17:14:40 +09:00
test_descrtut.py
test_devpoll.py
test_dict.py bpo-45609: Specialize STORE_SUBSCR (GH-29242) 2021-11-19 10:30:37 +00:00
test_dict_version.py
test_dictcomps.py
test_dictviews.py
test_difflib.py
test_difflib_expect.html
test_dis.py bpo-46344: Fix trace bug in else of try and try-star blocks (GH-30544) 2022-01-13 12:34:38 +00:00
test_distutils.py
test_doctest.py
test_doctest.txt
test_doctest2.py
test_doctest2.txt
test_doctest3.txt
test_doctest4.txt
test_docxmlrpc.py
test_dtrace.py
test_dynamic.py
test_dynamicclassattribute.py
test_eintr.py
test_embed.py bpo-46263: Do not ever expect "use_frozen_modules" to be -1. (gh-30438) 2022-01-06 11:56:13 -07:00
test_ensurepip.py
test_enum.py bpo-46327: [Enum] remove skipped tests (GH-30512) 2022-01-10 11:12:34 -08:00
test_enumerate.py
test_eof.py
test_epoll.py
test_errno.py
test_except_star.py bpo-46219, 46221: simplify except* implementation following exc_info changes. Move helpers to exceptions.c. Do not assume that exception groups are truthy. (GH-30289) 2022-01-02 23:22:42 +00:00
test_exception_group.py bpo-46107: ExceptionGroup.subgroup()/split() should copy __note__ to the parts (GH-30159) 2021-12-21 10:12:26 +00:00
test_exception_hierarchy.py
test_exception_variations.py bpo-45292: [PEP-654] add except* (GH-29581) 2021-12-14 16:48:15 +00:00
test_exceptions.py bpo-46339: Fix crash in the parser when computing error text for multi-line f-strings (GH-30529) 2022-01-11 08:30:39 -08:00
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
test_fractions.py
test_frame.py
test_frozen.py
test_fstring.py bpo-45727: Only trigger the 'did you forgot a comma' error suggestion if inside parentheses (GH-29757) 2021-11-24 22:21:23 +00:00
test_ftplib.py Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951) 2021-12-07 12:31:04 +01:00
test_funcattrs.py
test_functools.py bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050) 2021-12-25 14:16:14 +02:00
test_future.py
test_future3.py
test_future4.py
test_future5.py
test_gc.py
test_gdb.py bpo-45637: Remove broken fallback in gdb helpers to obtain frame variable (GH-29257) 2021-11-09 11:19:47 +00:00
test_generator_stop.py
test_generators.py bpo-46009: Do not exhaust generator when send() method raises (GH-29986) 2021-12-08 12:09:26 +00:00
test_genericalias.py bpo-45359: Support TopologicalSorter type subscript (GH-28714) 2021-12-08 20:52:57 +02:00
test_genericclass.py
test_genericpath.py
test_genexps.py
test_getargs2.py
test_getopt.py
test_getpass.py
test_getpath.py bpo-46297: Fix interpreter crash on startup with multiple PythonPaths set in registry (GH-30466) 2022-01-07 22:26:00 +00:00
test_gettext.py
test_glob.py bpo-37578: glob.glob -- added include_hidden parameter (GH-30153) 2021-12-18 06:23:34 -08:00
test_global.py
test_grammar.py bpo-45292: [PEP-654] add except* (GH-29581) 2021-12-14 16:48:15 +00:00
test_graphlib.py no-issue: remove unused import from test_graphlib.py (GH-29853) 2021-11-30 11:27:37 +09:00
test_grp.py
test_gzip.py bpo-45507: EOFErrors should be thrown for truncated gzip members (GH-29029) 2021-11-19 19:07:05 +01:00
test_hash.py
test_hashlib.py bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455) 2022-01-13 09:46:38 +01:00
test_heapq.py
test_hmac.py
test_html.py
test_htmlparser.py
test_http_cookiejar.py
test_http_cookies.py
test_httplib.py
test_httpservers.py
test_idle.py
test_imaplib.py bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455) 2022-01-13 09:46:38 +01:00
test_imghdr.py
test_imp.py
test_index.py
test_inspect.py Remove spaces in empty lines (GH-30121) 2021-12-16 01:35:21 +09:00
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_lib2to3.py
test_linecache.py
test_list.py
test_listcomps.py
test_lltrace.py
test_locale.py
test_logging.py bpo-46063: Add 'delay=True' to file handler initialization. (GH-30103) 2021-12-14 16:46:07 +00:00
test_long.py bpo-46233: Minor speedup for bigint squaring (GH-30345) 2022-01-03 20:41:16 -06:00
test_longexp.py
test_lzma.py
test_mailbox.py
test_mailcap.py
test_marshal.py
test_math.py bpo-37295: Use constant-time comb() and perm() for larger n depending on k (GH-30305) 2022-01-09 15:32:25 +02:00
test_memoryio.py
test_memoryview.py
test_metaclass.py
test_mimetypes.py
test_minidom.py
test_mmap.py
test_module.py
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 bpo-28806: Continue work: improve the netrc library (GH-26330) 2021-11-17 11:07:54 +02:00
test_nis.py
test_nntplib.py
test_ntpath.py bpo-46208: Fix normalization of relative paths in _Py_normpath()/os.path.normpath (GH-30362) 2022-01-06 19:13:10 +00: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 Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951) 2021-12-07 12:31:04 +01:00
test_ossaudiodev.py
test_osx_env.py
test_pathlib.py bpo-46150: ensure fakeuser does not exist in PosixPathTest.test_expanduser (GH-30240) 2021-12-24 00:07:50 -08:00
test_patma.py
test_pdb.py
test_peepholer.py bpo-45773: Stop "optimizing" certain jump patterns (GH-29505) 2021-11-11 11:44:34 -08:00
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 bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455) 2022-01-13 09:46:38 +01:00
test_positional_only_arg.py
test_posix.py
test_posixpath.py bpo-46208: Fix normalization of relative paths in _Py_normpath()/os.path.normpath (GH-30362) 2022-01-06 19:13:10 +00:00
test_pow.py bpo-46218: Change long_pow() to sliding window algorithm (GH-30319) 2022-01-02 13:18:20 -06:00
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_pydoc.py General cleanup of test_pydoc (GH-29459) 2021-11-07 17:44:11 -06:00
test_pyexpat.py
test_queue.py bpo-45835: Fix race condition in test_queue (#29601) 2021-11-18 09:51:30 +01:00
test_quopri.py
test_raise.py
test_random.py Move error test to the function that needs it. Improve error message. (GH-30008) 2021-12-09 20:24:50 -06:00
test_range.py
test_re.py
test_readline.py
test_regrtest.py bpo-45745: Remove regrtest --findleaks options (GH-29514) 2021-11-12 16:19:09 +01:00
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 bpo-43413: Revert changes in set.__init__ (GH-28403) 2021-12-26 13:27:01 +02:00
test_setcomps.py
test_shelve.py
test_shlex.py
test_shutil.py
test_signal.py bpo-27718: Fix help for the signal module (GH-30063) 2021-12-13 11:21:55 +02:00
test_site.py bpo-46049: Fixes ._pth support on non-Windows (GH-30051) 2021-12-11 15:06:17 +00:00
test_slice.py
test_smtpd.py Revert "bpo-28533: Remove asyncore, asynchat, smtpd modules (GH-29521)" (GH-29951) 2021-12-07 12:31:04 +01:00
test_smtplib.py bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455) 2022-01-13 09:46:38 +01:00
test_smtpnet.py
test_sndhdr.py
test_socket.py
test_socketserver.py
test_sort.py
test_source_encoding.py
test_spwd.py
test_ssl.py bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170) 2021-12-17 16:17:32 +01:00
test_stable_abi_ctypes.py bpo-43931: Export Python version as API data (GH-25577) 2021-12-09 17:52:05 -08:00
test_startfile.py
test_stat.py
test_statistics.py bpo-45876: Correctly rounded stdev() and pstdev() for the Decimal case (GH-29828) 2021-11-30 18:20:08 -06:00
test_strftime.py
test_string.py bpo-46307: Add string.Template.get_identifiers() method (GH-30493) 2022-01-11 11:15:42 -08:00
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
test_sunau.py
test_sundry.py
test_super.py
test_support.py
test_symtable.py
test_syntax.py bpo-46240: Correct the error for unclosed parentheses when the tokenizer is not finished (GH-30378) 2022-01-04 10:41:22 +00:00
test_sys.py bpo-46328: Add sys.exception() (GH-30514) 2022-01-13 12:35:58 +00:00
test_sys_setprofile.py
test_sys_settrace.py bpo-46344: Fix trace bug in else of try and try-star blocks (GH-30544) 2022-01-13 12:34:38 +00:00
test_sysconfig.py bpo-45582: Port getpath[p].c to Python (GH-29041) 2021-12-03 00:08:42 +00:00
test_syslog.py
test_tabnanny.py
test_tarfile.py
test_tcl.py
test_telnetlib.py
test_tempfile.py
test_textwrap.py
test_thread.py
test_threadedtempfile.py
test_threading.py
test_threading_local.py
test_threadsignals.py
test_time.py bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) 2021-12-18 15:26:24 +02:00
test_timeit.py
test_timeout.py
test_tix.py
test_tk.py
test_tokenize.py
test_trace.py bpo-37971: fix the position of decorator application (GH-30027) 2021-12-11 00:45:02 +01:00
test_traceback.py bpo-45615: Add missing test for printing traceback for non-exception. Fix traceback.py (GH-30091) 2022-01-02 09:34:03 +00:00
test_tracemalloc.py
test_ttk_guionly.py
test_ttk_textonly.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 bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298) 2021-12-05 22:44:01 +02:00
test_typing.py bpo-46359: Modernize test_typing by removing checks for EOL Python versions (GH-30563) 2022-01-13 21:09:40 +08:00
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
test_unittest.py
test_univnewlines.py
test_unpack.py
test_unpack_ex.py
test_unparse.py bpo-45292: [PEP-654] add except* (GH-29581) 2021-12-14 16:48:15 +00:00
test_urllib.py
test_urllib2.py
test_urllib2_localnet.py bpo-40479: Fix hashlib's usedforsecurity for OpenSSL 3.0.0 (GH-30455) 2022-01-13 09:46:38 +01:00
test_urllib2net.py bpo-46178: Remove/rename redundant Travis CI code (#30309) 2021-12-30 16:16:27 -08:00
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 bpo-41011: venv -- add more variables to pyvenv.cfg (GH-30382) 2022-01-07 06:50:30 +00:00
test_wait3.py
test_wait4.py
test_wave.py
test_weakref.py
test_weakset.py
test_webbrowser.py bpo-43424: Deprecate webbrowser.MacOSXOSAScript._name attribute (GH-30241) 2021-12-30 10:30:13 +09:00
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
test_xml_etree_c.py bpo-27946: Fix possible crash in ElementTree.Element (GH-29915) 2021-12-05 14:22:54 +02:00
test_xmlrpc.py
test_xmlrpc_net.py
test_xxlimited.py
test_xxtestfuzz.py
test_yield_from.py
test_zipapp.py
test_zipfile.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
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