cpython/Lib/test
Serhiy Storchaka 5bf32d1300
[3.13] gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in classes (GH-123613) (#124735)
* Setting the __module__ attribute for a class now removes the
  __firstlineno__ item from the type's dict.
* The _collections_abc and _pydecimal modules now completely replace the
  collections.abc and decimal modules after importing them. This
  allows to get the source of classes and functions defined in these
  modules.
* inspect.findsource() now checks whether the first line number for a
  class is out of bound.
(cherry picked from commit 69a4063ca5)
2024-09-29 21:21:40 -07:00
..
archivetestdata
audiodata
certdata [3.13] gh-118658: Return consistent types from get_un/verified_chain in SSLObject and SSLSocket (GH-118669) (#123082) 2024-08-19 10:39:28 -05:00
cjkencodings
configdata
crashers
data
decimaltestdata
dtracedata
encoded_modules
leakers
libregrtest [3.13] gh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572) (#123601) 2024-09-02 23:10:52 +09:00
mathdata
regrtestdata/import_from_tests
subprocessdata
support [3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123840) 2024-09-29 18:27:23 -07:00
test_ast [3.13] gh-123344: Add missing ast optimizations for PEP 696 (GH-123377) (#123427) 2024-08-28 14:02:34 +00:00
test_asyncio [3.13] gh-122957: Fix test flakiness in asyncio test in free-thread build (GH-124039) (#124067) 2024-09-23 11:07:41 -07:00
test_capi [3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123840) 2024-09-29 18:27:23 -07:00
test_cext
test_concurrent_futures
test_cppext
test_ctypes
test_dataclasses [3.13] gh-89683: add tests for deepcopy on frozen dataclasses (GH-123098) (#124678) 2024-09-29 18:00:42 -07:00
test_doctest
test_email
test_free_threading [3.13] gh-124402: Speed up test_free_threading and test_super (#124491) (#124585) 2024-09-26 13:44:36 -07:00
test_future_stmt
test_gdb [3.13] gh-101525: Skip test_gdb if the binary is relocated by BOLT. (gh-118572) (#123601) 2024-09-02 23:10:52 +09:00
test_import [3.13] gh-123880: Allow recursive import of single-phase-init modules (GH-123950) (#124273) 2024-09-23 12:56:00 -07:00
test_importlib [3.13] gh-121735: Fix module-adjacent references in zip files (GH-123037) (#123986) 2024-09-29 18:17:16 -07:00
test_inspect [3.13] gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in classes (GH-123613) (#124735) 2024-09-29 21:21:40 -07:00
test_interpreters
test_json
test_module
test_multiprocessing_fork
test_multiprocessing_forkserver
test_multiprocessing_spawn
test_pathlib [3.13] GH-85633: Fix pathlib test failures on filesystems without world-write. (GH-122883) (#122979) 2024-08-13 17:39:14 +00:00
test_peg_generator
test_pydoc
test_pyrepl [3.13] gh-123856: Fix PyREPL failure when a keyboard interrupt is triggered after using a history search (GH-124396) (#124530) 2024-09-26 13:39:01 -07:00
test_sqlite3
test_tkinter
test_tomllib
test_tools
test_ttk [3.13] gh-124378: Update test_ttk for Tcl/Tk 8.6.15 (GH-124542) (#124544) 2024-09-29 18:02:42 -07:00
test_unittest [3.13] gh-123934: Fix MagicMock not to reset magic method return values (GH-124038) (#124231) 2024-09-29 18:11:03 -07:00
test_warnings
test_zipfile [3.13] gh-123270: Replaced SanitizedNames with a more surgical fix. (GH-123354) (#123410) 2024-09-02 13:13:18 +02:00
test_zoneinfo
tkinterdata
tokenizedata
tracedmodules
typinganndata
wheeldata
xmltestdata
zipimport_data
.ruff.toml
__init__.py
__main__.py
_test_atexit.py
_test_eintr.py
_test_embed_set_config.py
_test_embed_structseq.py
_test_monitoring_shutdown.py
_test_multiprocessing.py
_test_venv_multiprocessing.py
archiver_tests.py
audiotests.py
audit-tests.py
autotest.py
bisect_cmd.py
clinic.test.c [3.13] gh-122688: Fix support of var-positional parameter in Argument Clinic (GH-122689) (#122852) 2024-09-02 13:03:04 +02:00
cov.py
curses_tests.py
datetimetester.py
dis_module.py
empty.vbs
exception_hierarchy.txt
fork_wait.py
levenshtein_examples.json
list_tests.py
lock_tests.py
mapping_tests.py
memory_watchdog.py
mime.types
mock_socket.py
mp_fork_bomb.py
mp_preload.py
multibytecodec_support.py
pickletester.py [3.13] gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898) (#123936) 2024-09-29 18:23:42 -07:00
profilee.py
pstats.pck
pyclbr_input.py
pythoninfo.py
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
regrtest.py
relimport.py
reperf.py
seq_tests.py
signalinterproctester.py
ssl_servers.py
ssltests.py
string_tests.py
test___all__.py
test__colorize.py
test__interpchannels.py
test__interpreters.py
test__locale.py
test__opcode.py
test__osx_support.py
test_abc.py
test_abstract_numbers.py
test_android.py [3.13] gh-116622: Mock the passage of time in Android logcat rate limit tests (GH-124015) (#124035) 2024-09-29 18:15:16 -07:00
test_argparse.py [3.13] gh-124245: Fix UserWarning in test_argparse (GH-124246) (#124255) 2024-09-29 18:07:04 -07:00
test_array.py
test_asdl_parser.py
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
test_bufio.py
test_builtin.py [3.13] gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in classes (GH-123613) (#124735) 2024-09-29 21:21:40 -07:00
test_bytes.py
test_bz2.py [3.13] Bump Ruff to 0.6.7 (#124384) (#124389) 2024-09-29 18:04:56 -07:00
test_c_locale_coercion.py
test_calendar.py
test_call.py
test_charmapcodec.py
test_class.py [3.13] gh-124722: Fix leak in test_detach_materialized_dict_no_memory (GH-124769) (#124777) 2024-09-29 21:18:24 -07:00
test_clinic.py [3.13] gh-122688: Fix support of var-positional parameter in Argument Clinic (GH-122689) (#122852) 2024-09-02 13:03:04 +02:00
test_cmath.py [3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123840) 2024-09-29 18:27:23 -07:00
test_cmd.py
test_cmd_line.py [3.13] gh-123275: Add tests for PYTHON_GIL=1 and -Xgil=1 (gh-123754) (gh-123755) 2024-09-06 11:02:05 +09:00
test_cmd_line_script.py
test_code.py
test_code_module.py [3.13] gh-122478: Remove internal frames from tracebacks in REPL (GH-122528) (#123227) 2024-08-22 23:58:05 +00:00
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
test_collections.py
test_colorsys.py
test_compare.py
test_compile.py [3.13] gh-123942: add missing test for docstring-handling code in ast_opt.c (GH-123943) (#123955) 2024-09-29 18:21:57 -07:00
test_compileall.py
test_compiler_assemble.py
test_compiler_codegen.py
test_complex.py [3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123840) 2024-09-29 18:27:23 -07:00
test_configparser.py
test_contains.py
test_context.py
test_contextlib.py [3.13] Bump Ruff to 0.6.7 (#124384) (#124389) 2024-09-29 18:04:56 -07:00
test_contextlib_async.py
test_copy.py
test_copyreg.py
test_coroutines.py
test_cprofile.py
test_csv.py
test_curses.py
test_datetime.py
test_dbm.py
test_dbm_dumb.py
test_dbm_gnu.py
test_dbm_ndbm.py
test_dbm_sqlite3.py
test_decimal.py [3.13] gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in classes (GH-123613) (#124735) 2024-09-29 21:21:40 -07:00
test_decorators.py
test_defaultdict.py
test_deque.py
test_descr.py
test_descrtut.py
test_devpoll.py
test_dict.py [3.13] gh-123083: Fix a potential use-after-free in ``STORE_ATTR_WITH… (#123235) 2024-08-23 01:37:26 +09:00
test_dict_version.py
test_dictcomps.py [3.13] gh-123142: fix too wide source location of GET_ITER/GET_AITER (GH-123420). (#123435) 2024-08-28 18:41:22 +01:00
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 [3.13] gh-123022: Fix crash with Py_Initialize in background thread (GH-123052) (#123114) 2024-08-17 20:38:02 +00:00
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_external_inspection.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 [3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123840) 2024-09-29 18:27:23 -07:00
test_flufl.py
test_fnmatch.py
test_fork1.py
test_format.py
test_fractions.py
test_frame.py [3.13] gh-124513: Check args in framelocalsproxy_new() (GH-124515) (#124539) 2024-09-29 18:03:00 -07:00
test_frozen.py
test_fstring.py
test_ftplib.py
test_funcattrs.py
test_functools.py
test_gc.py [3.13] gh-124538: Fix crash when using gc.get_referents on an untracked capsule object (GH-124559) (#124588) 2024-09-26 13:51:58 -07:00
test_generated_cases.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
test_http_cookiejar.py
test_http_cookies.py [3.13] gh-123067: Fix quadratic complexity in parsing "-quoted cookie values with backslashes (GH-123075) (#123103) 2024-08-24 15:36:58 -07:00
test_httplib.py
test_httpservers.py
test_idle.py
test_imaplib.py
test_index.py
test_int.py
test_int_literal.py
test_io.py [3.13] Bump Ruff to 0.6.7 (#124384) (#124389) 2024-09-29 18:04:56 -07:00
test_ioctl.py
test_ipaddress.py [3.13] gh-123409: fix IPv6Address.reverse_pointer for IPv4-mapped addresses (GH-123419) (#123606) 2024-09-03 01:19:46 +02:00
test_isinstance.py
test_iter.py [3.13] gh-123142: fix too wide source location of GET_ITER/GET_AITER (GH-123420). (#123435) 2024-08-28 18:41:22 +01:00
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 [3.13] gh-123142: fix too wide source location of GET_ITER/GET_AITER (GH-123420). (#123435) 2024-08-28 18:41:22 +01:00
test_lltrace.py
test_locale.py [3.13] GH-124108: Skip test_locale.test_strcoll_with_diacritic() on NetBSD (GH-124110) (#124146) 2024-09-23 16:37:06 -07:00
test_logging.py [3.13] gh-116263: Do not rollover empty files in RotatingFileHandler (GH-122788) (#122814) 2024-09-02 12:07:27 +00:00
test_long.py
test_longexp.py
test_lzma.py
test_mailbox.py
test_marshal.py
test_math.py [3.13] gh-123836: Check zero signs in math_testcases.txt (GH-123854) (#124161) 2024-09-29 18:14:44 -07:00
test_math_property.py
test_memoryio.py
test_memoryview.py [3.13] gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898) (#123936) 2024-09-29 18:23:42 -07:00
test_metaclass.py
test_mimetypes.py
test_minidom.py
test_mmap.py
test_modulefinder.py
test_monitoring.py [3.13] gh-122247: Move instruction instrumentation sanity check after tracing check (GH-122251) (GH-122812) 2024-08-16 12:01:40 +02:00
test_msvcrt.py
test_multibytecodec.py
test_multiprocessing_main_handling.py
test_named_expressions.py
test_netrc.py
test_ntpath.py
test_numeric_tower.py
test_opcache.py [3.13] gh-122712: Guard against __code__ reassignment in CALL_ALLOC_AND_ENTER_INIT (GH-122713) (GH-123184) 2024-08-21 13:16:30 +01:00
test_opcodes.py
test_openpty.py
test_operator.py
test_optimizer.py
test_optparse.py
test_ordered_dict.py [3.13] gh-119004: fix a crash in equality testing between OrderedDict (GH-121329) (#124507) 2024-09-27 11:34:48 -07:00
test_os.py [3.13] Bump Ruff to 0.6.7 (#124384) (#124389) 2024-09-29 18:04:56 -07:00
test_osx_env.py
test_patma.py [3.13] gh-123048: Fix missing source location in pattern matching code (GH-123167) (#123169) 2024-08-20 11:13:43 +00:00
test_pdb.py [3.13] gh-111051: [tests] Wait a second to support filesystems with low-resolution mtime (GH-121959) (GH-122114) 2024-08-12 11:00:33 +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 [3.13] gh-123309: Add more tests for the pickletools module (GH-123355) (#123533) 2024-09-02 13:18:44 +02:00
test_pkg.py
test_pkgutil.py [3.13] gh-123780: Make test_pkgutil clean up spam module (GH-123036) (#123781) 2024-09-06 22:57:46 +02:00
test_platform.py
test_plistlib.py
test_poll.py
test_popen.py
test_poplib.py
test_positional_only_arg.py
test_posix.py [3.13] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824) (#123864) 2024-09-29 18:26:50 -07:00
test_posixpath.py [3.13] gh-116622: Skip PosixPathTest.test_expanduser_pwd2 on platforms which don't support pwd.getpwall (GH-122521) (GH-122530) 2024-08-12 13:37:03 +03: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
test_queue.py
test_quopri.py
test_raise.py
test_random.py [3.13] gh-123968: Fix lower bound for python -m random --float (GH-123971) (#124009) 2024-09-23 16:25:51 -07:00
test_range.py
test_re.py [3.13] gh-122798: Make tests for warnings in the re module more strict (GH-122799) (#122804) 2024-09-02 12:59:15 +02:00
test_readline.py [3.13] gh-123321: Make Parser/myreadline.c locking safe in free-threaded build (GH-123690) (#123798) 2024-09-06 22:55:42 +02:00
test_regrtest.py [3.13] gh-119727: Add --single-process option to regrtest (#119728) (#123010) 2024-08-26 11:59:26 +02:00
test_repl.py [3.13] gh-120221: Support KeyboardInterrupt in asyncio REPL (GH-123795) (#123799) 2024-09-06 22:25:19 +02:00
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 [3.13] gh-123142: fix too wide source location of GET_ITER/GET_AITER (GH-123420). (#123435) 2024-08-28 18:41:22 +01:00
test_shelve.py
test_shlex.py
test_shutil.py [3.13] gh-116622: Make test_unzip_zipfile recognize Android error message format (GH-124462) (#124516) 2024-09-29 18:03:12 -07:00
test_signal.py [3.13] gh-116622: Switch test_stress_delivery_simultaneous from SIGUSR1 to SIGUSR2 (GH-123981) (#123988) 2024-09-24 10:21:26 -07:00
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 [3.13] gh-118658: Return consistent types from get_un/verified_chain in SSLObject and SSLSocket (GH-118669) (#123082) 2024-08-19 10:39:28 -05:00
test_stable_abi_ctypes.py
test_startfile.py
test_stat.py
test_statistics.py
test_str.py [3.13] gh-122888: Fix crash on certain calls to str() (GH-122889) (#122947) 2024-08-12 16:53:05 +00:00
test_strftime.py
test_string.py
test_string_literals.py
test_stringprep.py
test_strptime.py
test_strtod.py
test_struct.py [3.13] gh-124248: Fix crash in struct when processing 0p fields (GH-124251) (#124277) 2024-09-29 18:06:32 -07:00
test_structseq.py [3.13] gh-122527: Fix a crash on deallocation of PyStructSequence (GH-122577) (#122625) 2024-09-02 12:47:18 +02:00
test_subclassinit.py
test_subprocess.py
test_sundry.py
test_super.py [3.13] gh-124402: Speed up test_free_threading and test_super (#124491) (#124585) 2024-09-26 13:44:36 -07:00
test_support.py [3.13] gh-124682: Disable test that is prone to intermittent failure on iOS. (GH-124683) (#124687) 2024-09-27 18:28:02 +00:00
test_symtable.py
test_syntax.py
test_sys.py [3.13] gh-122527: Fix a crash on deallocation of PyStructSequence (GH-122577) (#122625) 2024-09-02 12:47:18 +02:00
test_sys_setprofile.py
test_sys_settrace.py
test_sysconfig.py
test_syslog.py
test_tabnanny.py
test_tarfile.py [3.13] gh-121285: Remove backtracking when parsing tarfile headers (GH-121286) (#123542) 2024-09-02 13:19:11 +02:00
test_tcl.py
test_tempfile.py
test_termios.py [3.13] gh-124030: Skip test_tcsendbreak on NetBSD for ENOTTY error (GH-124031) (#124063) 2024-09-23 17:28:10 -07:00
test_textwrap.py
test_thread.py
test_threadedtempfile.py
test_threading.py
test_threading_local.py
test_threadsignals.py
test_time.py [3.13] gh-123017: Add Android to the list of platforms where strftime doesn't support negative years (GH-124467) (#124674) 2024-09-27 11:00:49 -07:00
test_timeit.py
test_timeout.py
test_tokenize.py
test_trace.py
test_traceback.py [3.13] gh-122145: Handle an empty AST body when reporting tracebacks (GH-122161) (#124214) 2024-09-29 18:13:36 -07:00
test_tracemalloc.py
test_ttk_textonly.py
test_tty.py
test_tuple.py
test_turtle.py
test_type_aliases.py [3.13] gh-124498: Fix TypeAliasType not to be generic, when type_params=() (GH-124499) (#124603) 2024-09-29 18:01:06 -07:00
test_type_annotations.py
test_type_cache.py
test_type_comments.py
test_type_params.py [3.13] gh-123881: Add additional test coverage for PEP 695 edge cases (GH-123886) (#123890) 2024-09-29 18:24:40 -07:00
test_typechecks.py
test_types.py
test_typing.py
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
test_urllib.py
test_urllib2.py
test_urllib2_localnet.py
test_urllib2net.py
test_urllib_response.py
test_urllibnet.py
test_urlparse.py [3.13] gh-85110: Preserve relative path in URL without netloc in urllib.parse.urlunsplit() (GH-123179) (#123187) 2024-09-02 13:09:17 +02:00
test_userdict.py
test_userlist.py
test_userstring.py
test_utf8_mode.py
test_utf8source.py
test_uuid.py
test_venv.py [3.13] gh-124212: Fix undefined variable in error message in venv (GH-124211) (#124226) 2024-09-29 18:11:22 -07:00
test_wait3.py
test_wait4.py
test_wave.py
test_weakref.py [3.13] gh-123046: Fix regexp to catch cases where the module name is omitted from the weakref repr (GH-123047) (#123058) 2024-08-16 07:41:49 +00:00
test_weakset.py
test_webbrowser.py [3.13] Fix typos in docs, error messages and comments (#122502) (#122606) 2024-09-02 12:44:42 +02:00
test_winapi.py
test_winconsoleio.py
test_winreg.py
test_winsound.py
test_with.py [3.13] Bump Ruff to 0.6.7 (#124384) (#124389) 2024-09-29 18:04:56 -07:00
test_wmi.py
test_wsgiref.py
test_xml_dom_minicompat.py
test_xml_etree.py [3.13] gh-123213: Fixed xml.etree.ElementTree.Element.extend and assignment to no longer hide exceptions (GH-123214) (#123257) 2024-09-02 13:10:09 +02:00
test_xml_etree_c.py
test_xmlrpc.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
tf_inherit_check.py
win_console_handler.py
xmltests.py