cpython/Lib/test
Guido van Rossum 0db85eeba7
gh-106529: Fix subtle Tier 2 edge case with list iterator (#106756)
The Tier 2 opcode _IS_ITER_EXHAUSTED_LIST (and _TUPLE)
didn't set it->it_seq to NULL, causing a subtle bug
that resulted in test_exhausted_iterator in list_tests.py
to fail when running all tests with -Xuops.

The bug was introduced in gh-106696.

Added this as an explicit test.

Also fixed the dependencies for ceval.o -- it depends on executor_cases.c.h.
2023-07-14 17:22:06 -07:00
..
audiodata
capath
cjkencodings
crashers
data
decimaltestdata
dtracedata
encoded_modules
leakers
libregrtest gh-101634: regrtest reports decoding error as failed test (#106169) 2023-06-28 04:26:52 +02:00
subprocessdata
support Update test.support.interpreters to include missing RunFailedError import (#103841) 2023-06-26 17:30:20 +02:00
test_asyncio gh-105987: Fix reference counting issue in `_asyncio._swap_current_task` (#105989) 2023-06-24 10:53:24 +05:30
test_capi gh-106529: Fix subtle Tier 2 edge case with list iterator (#106756) 2023-07-14 17:22:06 -07:00
test_ctypes gh-105751, test_ctypes: Remove disabled tests (#105826) 2023-06-15 12:22:01 +00:00
test_email gh-102988: Detect email address parsing errors and return empty tuple to indicate the parsing error (old API) (#105127) 2023-07-10 23:00:55 +00:00
test_import gh-102251: Disable non-rerunnable test in test_import (#106013) 2023-06-24 01:34:05 +02:00
test_importlib gh-105873: Make `_xxsubinterpreters` use exception type name in shared exception (#105874) 2023-07-08 08:44:50 +00:00
test_json Revert "GH-96145: Add AttrDict to JSON module for use with object_hook (#96146)" (#105948) 2023-06-26 20:35:53 +02:00
test_peg_generator gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks (#106024) 2023-06-23 19:04:17 +02:00
test_sqlite3 gh-105875: Require SQLite 3.15.2 or newer (#105876) 2023-06-19 00:29:08 +02:00
test_tkinter
test_tomllib
test_tools
test_ttk
test_unittest Remove unused branches from mock module (#106617) 2023-07-11 08:52:12 +00:00
test_warnings gh-103186: Fix or catch 'extra' stderr output from unittests (#103196) 2023-07-10 16:29:03 -04:00
test_zipfile gh-106752: Move zipfile._path into its own package (#106753) 2023-07-14 20:40:46 +00:00
test_zoneinfo
tkinterdata
tracedmodules
typinganndata
xmltestdata
ziptestdata
__init__.py
__main__.py
_test_atexit.py
_test_eintr.py
_test_embed_set_config.py
_test_embed_structseq.py
_test_multiprocessing.py gh-90876: Restore the ability to import multiprocessing when `sys.executable` is `None` (#106464) 2023-07-06 22:46:50 +00:00
_test_venv_multiprocessing.py
_testcppext.cpp closes gh-106479: fix typo in __cplusplus macro (gh-106480) 2023-07-06 17:34:00 -05: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
ann_module7.py
ann_module8.py
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.c gh-106368: Increase Argument Clinic test coverage (#106728) 2023-07-13 22:18:32 +00:00
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
doctest_lineno.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
levenshtein_examples.json
list_tests.py
lock_tests.py
make_ssl_certs.py
mapping_tests.py
math_testcases.txt
memory_watchdog.py
mime.types
mock_socket.py
mod_generics_cache.py
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
setup_testcppext.py
setuptools-67.6.1-py3-none-any.whl
sgml_input.html
shadowed_super.py
signalinterproctester.py
smtpd.py
sortperf.py
ssl_cert.pem
ssl_key.passwd.pem
ssl_key.pem
ssl_servers.py
ssltests.py
string_tests.py gh-106487: Allow the 'count' argument of `str.replace` to be a keyword (#106488) 2023-07-10 12:52:36 +03:00
talos-2019-0758.pem
test___all__.py
test___future__.py
test__locale.py
test__opcode.py gh-105481: expose opcode metadata via the _opcode module (#106688) 2023-07-14 18:41:52 +01:00
test__osx_support.py
test__xxinterpchannels.py
test__xxsubinterpreters.py gh-105873: Make `_xxsubinterpreters` use exception type name in shared exception (#105874) 2023-07-08 08:44:50 +00:00
test_abc.py gh-106300: Improve `assertRaises(Exception)` usages in tests (GH-106302) 2023-07-07 13:42:40 -07:00
test_abstract_numbers.py
test_argparse.py
test_array.py gh-106162: array: suppress warning in test_array (#106404) 2023-07-05 02:02:49 +09:00
test_asdl_parser.py
test_ast.py GH-105588: Add missing error checks to some obj2ast_* converters (GH-105589) 2023-06-15 15:45:13 -07:00
test_asyncgen.py
test_atexit.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 gh-106197: Deduplicate tests in `test_buffer` (#106198) 2023-06-28 07:43:41 -07:00
test_bufio.py
test_builtin.py
test_bytes.py
test_bz2.py
test_c_locale_coercion.py
test_calendar.py
test_call.py gh-106023: Remove _PyObject_FastCall() function (#106265) 2023-06-30 11:46:43 +02:00
test_charmapcodec.py
test_class.py GH-106057: Handle recursion errors in inline class calls properly. (GH-106108) 2023-07-07 11:09:26 +01:00
test_clinic.py gh-106368: Increase Argument Clinic test coverage (#106728) 2023-07-13 22:18:32 +00:00
test_cmath.py
test_cmd.py
test_cmd_line.py
test_cmd_line_script.py gh-103186: Fix or catch 'extra' stderr output from unittests (#103196) 2023-07-10 16:29:03 -04:00
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 gh-106300: Improve `assertRaises(Exception)` usages in tests (GH-106302) 2023-07-07 13:42:40 -07:00
test_codeop.py
test_collections.py
test_colorsys.py gh-106498: Revert incorrect colorsys.rgb_to_hls change (#106627) 2023-07-11 11:07:20 -04:00
test_compare.py
test_compile.py gh-104635: Add a test case for variables that have a dependency. (gh-106583) 2023-07-11 10:14:53 +09:00
test_compileall.py
test_compiler_assemble.py gh-105775: Convert LOAD_CLOSURE to a pseudo-op (#106059) 2023-06-29 09:34:00 -07:00
test_compiler_codegen.py GH-106008: Make implicit boolean conversions explicit (GH-106003) 2023-06-29 13:49:54 -07:00
test_complex.py
test_concurrent_futures.py gh-94777: Fix deadlock in ProcessPoolExecutor (#94784) 2023-07-10 21:45:27 +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
test_cppext.py
test_cprofile.py GH-106152: Add PY_THROW event to cProfile (GH-106161) 2023-06-29 16:14:09 -07:00
test_crashers.py
test_csv.py
test_curses.py gh-106194: Rename duplicated tests in `test_curses` (#106196) 2023-06-28 14:41:08 -06:00
test_dataclasses.py
test_datetime.py
test_dbm.py
test_dbm_dumb.py
test_dbm_gnu.py
test_dbm_ndbm.py
test_decimal.py gh-106078: Convert `_decimal` types to heap types (#106079) 2023-06-29 10:27:20 +00:00
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 GH-106008: Make implicit boolean conversions explicit (GH-106003) 2023-06-29 13:49:54 -07:00
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
test_ensurepip.py
test_enum.py gh-106602: [Enum] Add __copy__ and __deepcopy__ (GH-106666) 2023-07-12 14:01:17 -07:00
test_enumerate.py
test_eof.py
test_epoll.py
test_errno.py
test_except_star.py
test_exception_group.py gh-105730: support more callables in ExceptionGroup.split() and subgroup() (#106035) 2023-06-23 19:47:47 +01:00
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
test_fractions.py
test_frame.py
test_frozen.py
test_fstring.py gh-106396: Special-case empty format spec to gen empty JoinedStr node (#106401) 2023-07-04 14:19:08 +02:00
test_ftplib.py
test_funcattrs.py
test_functools.py gh-106292: restore checking __dict__ in cached_property.__get__ (#106380) 2023-07-05 17:01:35 -06:00
test_future.py gh-105908: fix `barry_as_FLUFL` future import (#105909) 2023-06-19 22:50:57 +01:00
test_future3.py
test_future4.py
test_future5.py
test_gc.py
test_gdb.py gh-106023: Remove _PyObject_FastCall() function (#106265) 2023-06-30 11:46:43 +02:00
test_generator_stop.py
test_generators.py
test_genericalias.py gh-105486: Change the `repr` of `ParamSpec` list of args in `GenericAlias` (#105488) 2023-07-01 00:04:50 +00:00
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 GH-106160: Fix test_gzip failing under WASI, which does not have zlib. (#106167) 2023-06-28 00:55:11 +00:00
test_hash.py
test_hashlib.py
test_heapq.py
test_hmac.py
test_html.py
test_htmlparser.py
test_http_cookiejar.py
test_http_cookies.py
test_httplib.py gh-105626: Change the default return value of `HTTPConnection.get_proxy_response_headers` (#105628) 2023-07-13 23:55:49 -07:00
test_httpservers.py gh-105821: Use a raw f-string in test_httpservers.py (#105822) 2023-06-15 10:48:01 +00:00
test_idle.py
test_imaplib.py gh-85136: Remove disabled remote IMAP tests (#106022) 2023-06-23 13:39:50 +00:00
test_index.py
test_inspect.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_linecache.py
test_list.py
test_listcomps.py gh-105340: include hidden fast-locals in locals() (#105715) 2023-07-05 17:05:02 -06:00
test_lltrace.py
test_locale.py
test_logging.py
test_long.py
test_longexp.py
test_lzma.py
test_mailbox.py gh-106300: Improve `assertRaises(Exception)` usages in tests (GH-106302) 2023-07-07 13:42:40 -07:00
test_marshal.py
test_math.py
test_math_property.py
test_memoryio.py
test_memoryview.py
test_metaclass.py
test_mimetypes.py
test_minidom.py
test_mmap.py gh-105235: Prevent reading outside buffer during mmap.find() (#105252) 2023-07-12 22:50:45 -04:00
test_module.py
test_modulefinder.py
test_monitoring.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_ntpath.py
test_numeric_tower.py
test_opcache.py GH-106214: Fix `test_opcache` to skip threaded tests on non-threaded platforms (GH-106166) 2023-06-28 13:04:59 -07:00
test_opcodes.py
test_openpty.py
test_operator.py
test_optparse.py
test_ordered_dict.py
test_os.py gh-106046: Improve error message from `os.fspath` if `__fspath__` is set to `None` (#106082) 2023-06-26 00:06:12 +01:00
test_osx_env.py
test_pathlib.py GH-106330: Fix matching of empty path in `pathlib.PurePath.match()` (GH-106331) 2023-07-03 21:29:44 +01:00
test_patma.py GH-106135: Add more edge-"cases" to test_patma (GH-106271) 2023-06-30 19:39:50 +00:00
test_pdb.py GH-103124: Multiline statement support for pdb (GH-103125) 2023-06-15 23:34:42 +00:00
test_peepholer.py
test_pep646_syntax.py
test_perf_profiler.py
test_perfmaps.py
test_pickle.py
test_picklebuffer.py
test_pickletools.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_pydoc.py gh-102541: Add test case for help() for non_existent_module (#106340) 2023-07-11 14:04:09 -04:00
test_pyexpat.py
test_queue.py
test_quopri.py
test_raise.py
test_random.py
test_range.py
test_re.py Move implementation specific RE tests to separate class (GH-106563) 2023-07-09 12:48:36 +03:00
test_readline.py
test_regrtest.py gh-101634: regrtest reports decoding error as failed test (#106169) 2023-06-28 04:26:52 +02: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 gh-106664: selectors: add get() method to _SelectorMapping (#106665) 2023-07-13 19:18:53 +00:00
test_set.py
test_setcomps.py
test_shelve.py
test_shlex.py
test_shutil.py gh-106300: Improve `assertRaises(Exception)` usages in tests (GH-106302) 2023-07-07 13:42:40 -07:00
test_signal.py
test_site.py
test_slice.py
test_smtplib.py
test_smtpnet.py
test_socket.py
test_socketserver.py
test_sort.py
test_source_encoding.py
test_ssl.py
test_stable_abi_ctypes.py gh-106307: C API: Add PyMapping_GetOptionalItem() function (GH-106308) 2023-07-11 23:04:12 +03:00
test_startfile.py
test_stat.py
test_statistics.py
test_str.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_sundry.py
test_super.py
test_support.py
test_symtable.py
test_syntax.py gh-98931: Add custom error messages to invalid import/from with multiple targets (#105985) 2023-06-22 15:56:40 +00:00
test_sys.py GH-91095: Specialize calls to normal Python classes. (GH-99331) 2023-06-22 09:48:19 +01:00
test_sys_setprofile.py
test_sys_settrace.py GH-91095: Specialize calls to normal Python classes. (GH-99331) 2023-06-22 09:48:19 +01:00
test_sysconfig.py
test_syslog.py
test_tabnanny.py
test_tarfile.py
test_tcl.py
test_tempfile.py
test_textwrap.py
test_thread.py
test_threadedtempfile.py
test_threading.py gh-106236: Replace `assert` with `raise RuntimeError` in `threading.py` (#106237) 2023-07-12 11:07:59 -07:00
test_threading_local.py
test_threadsignals.py
test_time.py gh-106316: Remove pytime.h header file (#106317) 2023-07-01 22:27:18 +00:00
test_timeit.py
test_timeout.py
test_tokenize.py gh-106200: Remove unused imports (#106201) 2023-06-28 11:55:41 +00:00
test_trace.py
test_traceback.py
test_tracemalloc.py gh-106320: Remove private _PyTraceMalloc C API functions (#106324) 2023-07-02 00:49:18 +00:00
test_ttk_textonly.py
test_tuple.py
test_turtle.py
test_type_aliases.py gh-105486: Change the `repr` of `ParamSpec` list of args in `GenericAlias` (#105488) 2023-07-01 00:04:50 +00:00
test_type_annotations.py
test_type_cache.py
test_type_comments.py
test_type_params.py gh-106403: Restore weakref support for TypeVar and friends (#106418) 2023-07-11 08:43:24 -07:00
test_typechecks.py
test_types.py
test_typing.py gh-106309: Deprecate typing.no_type_check_decorator (#106312) 2023-07-13 14:30:35 +01:00
test_ucn.py
test_unary.py
test_unicode_file.py
test_unicode_file_functions.py
test_unicode_identifiers.py
test_unicodedata.py
test_univnewlines.py
test_unpack.py
test_unpack_ex.py
test_unparse.py gh-106145: Make `end_{lineno,col_offset}` required on `type_param` nodes (#106224) 2023-06-30 23:45:08 +00:00
test_urllib.py
test_urllib2.py
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_uuid.py gh-103186: Fix or catch 'extra' stderr output from unittests (#103196) 2023-07-10 16:29:03 -04:00
test_venv.py
test_wait3.py
test_wait4.py
test_wave.py
test_weakref.py
test_weakset.py
test_webbrowser.py
test_winconsoleio.py
test_winreg.py
test_winsound.py
test_with.py
test_wmi.py
test_wsgiref.py
test_xml_dom_minicompat.py
test_xml_etree.py gh-96844: Improve error message of list.remove (gh-106455) 2023-07-06 07:19:49 +09:00
test_xml_etree_c.py
test_xmlrpc.py xmlrpc.client uses datetime.datetime.isoformat() (#105741) 2023-06-14 17:00:40 +02:00
test_xxlimited.py
test_xxtestfuzz.py
test_yield_from.py
test_zipapp.py
test_zipfile64.py
test_zipimport.py gh-103200: Fix performance issues with `zipimport.invalidate_caches()` (GH-103208) 2023-07-07 22:02:13 +00:00
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
wheel-0.40.0-py3-none-any.whl
win_console_handler.py
xmltests.py
zip_cp437_header.zip
zipdir.zip