cpython/Lib/test
Barry Warsaw 13d4489142
gh-86298: Ensure that __loader__ and __spec__.loader agree in warnings.warn_explicit() (GH-97803)
In `_warnings.c`, in the C equivalent of `warnings.warn_explicit()`, if the module globals are given (and not None), the warning will attempt to get the source line for the issued warning.  To do this, it needs the module's loader.

Previously, it would only look up `__loader__` in the module globals.  In https://github.com/python/cpython/issues/86298 we want to defer to the `__spec__.loader` if available.

The first step on this journey is to check that `loader == __spec__.loader` and issue another warning if it is not.  This commit does that.

Since this is a PoC, only manual testing for now.

```python
# /tmp/foo.py
import warnings

import bar

warnings.warn_explicit(
    'warning!',
    RuntimeWarning,
    'bar.py', 2,
    module='bar knee',
    module_globals=bar.__dict__,
    )
```

```python
# /tmp/bar.py
import sys
import os
import pathlib

# __loader__ = pathlib.Path()
```

Then running this: `./python.exe -Wdefault /tmp/foo.py`

Produces:

```
bar.py:2: RuntimeWarning: warning!
  import os
```

Uncomment the `__loader__ = ` line in `bar.py` and try it again:

```
sys:1: ImportWarning: Module bar; __loader__ != __spec__.loader (<_frozen_importlib_external.SourceFileLoader object at 0x109f7dfa0> != PosixPath('.'))
bar.py:2: RuntimeWarning: warning!
  import os
```

Automerge-Triggered-By: GH:warsaw
2022-10-06 19:32:53 -07:00
..
audiodata gh-77171 Support WAVE_FORMAT_EXTENSIBLE in the wave module (GH-96777) 2022-09-14 14:34:40 +01:00
capath
cjkencodings
crashers Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
data
decimaltestdata
dtracedata
encoded_modules
imghdrdata
leakers
libregrtest gh-96465: Clear fractions hash lru_cache under refleak testing (GH-96689) 2022-09-08 11:52:07 -07:00
sndhdrdata
subprocessdata
support GH-91079: Decouple C stack overflow checks from Python recursion checks. (GH-96510) 2022-10-05 01:34:03 +01:00
test_asyncio GH-90985: Revert "Deprecate passing a message into cancel()" (#97999) 2022-10-06 17:30:27 -07:00
test_ctypes bpo-38748: Add ctypes test for stack corruption due to misaligned arguments (GH-26204) 2022-09-26 17:27:44 +01:00
test_email gh-95087: Fix IndexError in parsing invalid date in the email module (GH-95201) 2022-07-25 09:17:25 +03:00
test_import
test_importlib gh-86298: Ensure that __loader__ and __spec__.loader agree in warnings.warn_explicit() (GH-97803) 2022-10-06 19:32:53 -07:00
test_json gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961) 2022-09-24 14:38:53 +03:00
test_lib2to3 Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_peg_generator
test_sqlite3 gh-77617: Add sqlite3 command-line interface (#95026) 2022-08-01 12:25:16 +02:00
test_tkinter gh-73588: Fix generation of the default name of tkinter.Checkbutton. (GH-97547) 2022-09-27 14:05:05 +03:00
test_tomllib
test_tools gh-97670: Remove sys.getdxp() and analyze_dxp.py script (#97671) 2022-10-04 15:28:57 +02:00
test_ttk gh-73588: Fix generation of the default name of tkinter.Checkbutton. (GH-97547) 2022-09-27 14:05:05 +03:00
test_unittest gh-97837: Change deprecation warning message in unittest (#97838) 2022-10-04 17:29:18 -07:00
test_warnings gh-95853: Add script to automate WASM build (GH-95828) 2022-08-13 21:56:08 +02:00
test_zoneinfo
tracedmodules
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-96819: multiprocessing.resource_tracker: check if length of pipe write <= 512 (#96890) 2022-10-02 17:41:01 -07:00
_testcppext.cpp gh-94731: Revert to C-style casts for _Py_CAST (GH-94782) 2022-07-14 11:57:18 +02: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
audiotest.au
audiotests.py
audit-tests.py gh-89545: Updates platform module to use new internal _wmi module on Windows to directly query OS properties (GH-96289) 2022-09-07 21:09:20 +01:00
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 gh-97728: Argument Clinic: Fix uninitialized variable in the Py_UNICODE converter (GH-97729) 2022-10-03 10:42:54 +03: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 gh-69142: add %:z strftime format code (gh-95983) 2022-08-28 14:27:42 -07:00
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 gh-97008: Add a Python implementation of AttributeError and NameError suggestions (#97022) 2022-10-04 15:31:16 -07:00
list_tests.py
lock_tests.py
mailcap.txt
make_ssl_certs.py
mapping_tests.py
math_testcases.txt
memory_watchdog.py
mime.types
mock_socket.py gh-93243: Make smtpd private before porting its users (GH-93246) 2022-08-05 17:41:29 -07:00
mod_generics_cache.py
mp_fork_bomb.py
mp_preload.py
multibytecodec_support.py
nokia.pem
nosan.pem
nullbytecert.pem
nullcert.pem
pickletester.py gh-95196: Disable incorrect pickling of the C implemented classmethod descriptors (GH-96383) 2022-10-05 14:21:16 +03:00
profilee.py
pstats.pck
pycacert.pem
pycakey.pem
pyclbr_input.py
pydoc_mod.py
pydocfodder.py
pythoninfo.py gh-95174: Add pthread stubs for WASI (GH-95234) 2022-07-27 20:28:06 +02:00
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 gh-94731: Revert to C-style casts for _Py_CAST (GH-94782) 2022-07-14 11:57:18 +02:00
sgml_input.html
signalinterproctester.py
Sine-1000Hz-300ms.aif
smtpd.py gh-93243: Make smtpd private before porting its users (GH-93246) 2022-08-05 17:41:29 -07:00
sortperf.py
ssl_cert.pem
ssl_key.passwd.pem
ssl_key.pem
ssl_servers.py
ssltests.py
string_tests.py gh-94808: improve comments and coverage of fastsearch.h (GH-96760) 2022-09-13 14:25:10 -04:00
talos-2019-0758.pem
test___all__.py
test___future__.py
test__locale.py
test__opcode.py gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241) 2022-07-01 15:33:35 +01:00
test__osx_support.py
test__xxsubinterpreters.py
test_abc.py
test_abstract_numbers.py
test_aifc.py
test_argparse.py gh-92445 Improve interaction between nargs="*" and choices() (GH-92565) 2022-08-25 06:18:38 -05:00
test_array.py
test_asdl_parser.py
test_ast.py GH-91079: Decouple C stack overflow checks from Python recursion checks. (GH-96510) 2022-10-05 01:34:03 +01:00
test_asyncgen.py gh-96348: Deprecate the 3-arg signature of coroutine.throw and generator.throw (GH-96428) 2022-09-30 09:43:02 +01:00
test_asynchat.py
test_asyncore.py
test_atexit.py
test_audioop.py
test_audit.py gh-89545: Updates platform module to use new internal _wmi module on Windows to directly query OS properties (GH-96289) 2022-09-07 21:09:20 +01:00
test_augassign.py
test_base64.py gh-93096: Remove python -m base64 -t (gh-94230) 2022-07-02 15:53:43 +09:00
test_baseexception.py gh-97591: In Exception.__setstate__() acquire strong references before calling tp_hash slot (#97700) 2022-10-01 20:57:17 -07:00
test_bdb.py
test_bigaddrspace.py
test_bigmem.py
test_binascii.py
test_binop.py
test_bisect.py gh-96538: Fix refleak in _bisectmodule.c (gh-96619) 2022-09-06 19:37:18 -04:00
test_bool.py gh-94808: Add coverage for boolobject.c:bool_new (GH-94859) 2022-07-14 16:53:06 -07:00
test_buffer.py gh-90751: memoryview now supports half-float (#96738) 2022-09-10 22:44:10 +02:00
test_bufio.py
test_builtin.py gh-96670: Raise SyntaxError when parsing NULL bytes (#97594) 2022-09-27 23:23:42 +01:00
test_bytes.py gh-94808: Improve coverage of _PyBytes_FormatEx (GH-95895) 2022-09-07 04:51:50 -07:00
test_bz2.py
test_c_locale_coercion.py
test_calendar.py
test_call.py GH-91079: Decouple C stack overflow checks from Python recursion checks. (GH-96510) 2022-10-05 01:34:03 +01:00
test_capi.py GH-91052: Add C API for watching dictionaries (GH-31787) 2022-10-07 01:08:00 +01:00
test_cgi.py
test_cgitb.py
test_charmapcodec.py
test_check_c_globals.py gh-95349: Hide a Distutils Warning Filter for test_check_c_globals (GH-95837) 2022-08-09 16:04:05 -07:00
test_class.py gh-94808: Add test coverage for PyObject_HasAttrString (#96627) 2022-10-03 13:37:15 -07:00
test_clinic.py
test_cmath.py
test_cmd.py
test_cmd_line.py gh-96512: Move int_max_str_digits setting to PyConfig (#96944) 2022-10-03 13:55:45 -07:00
test_cmd_line_script.py gh-96670: Raise SyntaxError when parsing NULL bytes (#97594) 2022-09-27 23:23:42 +01:00
test_code.py GH-97779: Ensure that *all* frame objects are backed by "complete" frames (GH-97845) 2022-10-04 17:30:03 -07: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
test_codeop.py gh-96052: codeop: fix handling compiler warnings in incomplete input (GH-96132) 2022-09-16 17:37:30 +03:00
test_collections.py GH-91079: Decouple C stack overflow checks from Python recursion checks. (GH-96510) 2022-10-05 01:34:03 +01:00
test_colorsys.py
test_compare.py
test_compile.py gh-87092: bring compiler code closer to a preprocessing-opt-assembler organisation (GH-97644) 2022-10-05 08:52:35 +01:00
test_compileall.py
test_complex.py
test_concurrent_futures.py gh-95166: cancel map waited on future on timeout (GH-95169) 2022-07-28 11:20:10 +02:00
test_configparser.py Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_contains.py
test_context.py
test_contextlib.py
test_contextlib_async.py
test_copy.py
test_copyreg.py
test_coroutines.py gh-96348: Deprecate the 3-arg signature of coroutine.throw and generator.throw (GH-96428) 2022-09-30 09:43:02 +01:00
test_cppext.py gh-94731: Revert to C-style casts for _Py_CAST (GH-94782) 2022-07-14 11:57:18 +02:00
test_cprofile.py
test_crashers.py
test_crypt.py
test_csv.py gh-95950: Add a test for both csv.Dialect and kwargs (#95951) 2022-08-28 17:43:32 -07:00
test_curses.py
test_dataclasses.py bpo-35540 dataclasses.asdict now supports defaultdict fields (gh-32056) 2022-10-06 17:11:59 -07:00
test_datetime.py
test_dbm.py
test_dbm_dumb.py
test_dbm_gnu.py GH-46412: More efficient bool() for ndbm/_gdbmmodule (#96692) 2022-09-08 19:32:40 -07:00
test_dbm_ndbm.py GH-46412: More efficient bool() for ndbm/_gdbmmodule (#96692) 2022-09-08 19:32:40 -07:00
test_decimal.py gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96499) 2022-09-02 09:35:08 -07:00
test_decorators.py
test_defaultdict.py
test_deque.py
test_descr.py Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_descrtut.py gh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650) 2022-08-08 14:00:17 +03:00
test_devpoll.py
test_dict.py
test_dict_version.py
test_dictcomps.py
test_dictviews.py gh-96408: Test set operation on items dict view. (GH-96438) 2022-08-30 17:43:23 -05:00
test_difflib.py
test_difflib_expect.html
test_dis.py gh-87092: reduce redundancy and repetition in compiler's optimization stage (GH-96713) 2022-09-13 13:03:41 +01:00
test_distutils.py
test_doctest.py gh-93883: elide traceback indicators when possible (#93994) 2022-07-11 07:40:53 +01:00
test_doctest.txt
test_doctest2.py
test_doctest2.txt
test_doctest3.txt
test_doctest4.txt
test_docxmlrpc.py
test_dtrace.py
test_dynamic.py GH-91079: Decouple C stack overflow checks from Python recursion checks. (GH-96510) 2022-10-05 01:34:03 +01:00
test_dynamicclassattribute.py
test_eintr.py
test_embed.py gh-96512: Move int_max_str_digits setting to PyConfig (#96944) 2022-10-03 13:55:45 -07:00
test_ensurepip.py
test_enum.py gh-96865: [Enum] fix Flag to use CONFORM boundary (GH-97528) 2022-10-05 15:25:55 -07:00
test_enumerate.py
test_eof.py
test_epoll.py
test_errno.py
test_except_star.py
test_exception_group.py Increase test coverage of Objects/exceptions.c (GH-94674) 2022-07-08 19:01:47 +01:00
test_exception_hierarchy.py gh-96005: FreeBSD has ENOTCAPABLE, too (GH-96034) 2022-08-17 07:24:53 +02:00
test_exception_variations.py
test_exceptions.py GH-91079: Decouple C stack overflow checks from Python recursion checks. (GH-96510) 2022-10-05 01:34:03 +01:00
test_extcall.py gh-96751: Remove dead code from CALL_FUNCTION_EX opcode (GH-96752) 2022-09-15 10:33:13 +01:00
test_faulthandler.py
test_fcntl.py
test_file.py Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_file_eintr.py
test_filecmp.py
test_fileinput.py gh-93157: Fix fileinput didn't support errors in inplace mode (GH-95128) 2022-07-24 11:42:11 +09:00
test_fileio.py Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_fileutils.py
test_finalization.py
test_float.py gh-95605: Fix float(s) error message when s contains only whitespace (GH-95665) 2022-08-10 19:25:39 +01:00
test_flufl.py
test_fnmatch.py
test_fork1.py
test_format.py
test_fractions.py Allow whitespace around a slash in fraction string inputs (GH-96496) 2022-09-02 11:10:58 -05:00
test_frame.py GH-97002: Prevent _PyInterpreterFrames from backing more than one PyFrameObject (GH-97996) 2022-10-07 00:20:01 +01:00
test_frozen.py
test_fstring.py gh-94869: Fix the location in some expressions for multi-line f-string ast nodes (#94895) 2022-07-16 19:51:53 +01:00
test_ftplib.py
test_funcattrs.py
test_functools.py Fix misused variable that was preventing permutations of classes from being tested (GH-93935) 2022-07-28 23:42:51 +01:00
test_future.py
test_future3.py
test_future4.py
test_future5.py
test_gc.py
test_gdb.py
test_generator_stop.py
test_generators.py GH-97752: Clear the previous member of newly-created generator/coroutine frames (GH-97795) 2022-10-04 00:36:52 +01:00
test_genericalias.py
test_genericclass.py
test_genericpath.py
test_genexps.py
test_getargs2.py gh-94938: Fix errror detection of unexpected keyword arguments (GH-94999) 2022-07-28 07:40:36 +03:00
test_getopt.py Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_getpass.py
test_getpath.py
test_gettext.py
test_glob.py
test_global.py
test_grammar.py Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_graphlib.py
test_grp.py gh-95395: Add argument type error test (GH-95412) 2022-08-06 18:52:53 +02:00
test_gzip.py
test_hash.py
test_hashlib.py
test_heapq.py
test_hmac.py
test_html.py
test_htmlparser.py gh-95813: Improve HTMLParser from the view of inheritance (#95874) 2022-08-18 13:16:33 +02:00
test_http_cookiejar.py
test_http_cookies.py
test_httplib.py gh-95149: Enhance http.HTTPStatus with properties that indicate the HTTP status category (GH-95453) 2022-08-30 11:11:44 -07:00
test_httpservers.py
test_idle.py
test_imaplib.py
test_imghdr.py
test_imp.py gh-96272: Replace test_source_encoding's test_pep263 with test_import_encoded_module from test_imp (GH-96275) 2022-08-25 14:19:16 -05:00
test_index.py
test_inspect.py gh-65961: Do not rely solely on __cached__ (GH-97990) 2022-10-06 15:40:22 -07:00
test_int.py gh-96512: Move int_max_str_digits setting to PyConfig (#96944) 2022-10-03 13:55:45 -07:00
test_int_literal.py
test_interpreters.py
test_io.py
test_ioctl.py
test_ipaddress.py gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961) 2022-09-24 14:38:53 +03:00
test_isinstance.py GH-91079: Decouple C stack overflow checks from Python recursion checks. (GH-96510) 2022-10-05 01:34:03 +01:00
test_iter.py gh-94808: Coverage: Check picklablability of calliter (#95923) 2022-10-03 13:50:30 -07:00
test_iterlen.py
test_itertools.py
test_keyword.py
test_keywordonlyarg.py
test_kqueue.py
test_largefile.py
test_launcher.py gh-96559: Fixes Windows launcher handling of defaults using old-style tags, and adds What's New section (GH-96595) 2022-09-05 20:06:30 +01:00
test_linecache.py
test_list.py gh-97616: list_resize() checks for integer overflow (#97617) 2022-09-29 00:07:07 +02:00
test_listcomps.py
test_lltrace.py
test_locale.py
test_logging.py gh-90195: Unset logger disabled flag when configuring it. (GH-96530) 2022-09-03 13:38:38 +01:00
test_long.py gh-94808: Cover PyObject_PyBytes case with custom __bytes__ method (#96610) 2022-10-06 05:16:16 -07:00
test_longexp.py
test_lzma.py
test_mailbox.py
test_mailcap.py
test_marshal.py GH-91079: Decouple C stack overflow checks from Python recursion checks. (GH-96510) 2022-10-05 01:34:03 +01:00
test_math.py
test_memoryio.py
test_memoryview.py gh-90751: memoryview now supports half-float (#96738) 2022-09-10 22:44:10 +02:00
test_metaclass.py
test_mimetypes.py
test_minidom.py gh-96175: add missing self._localName assignment in xml.dom.minidom.Attr (#96176) 2022-08-23 09:16:02 -07:00
test_mmap.py
test_module.py gh-97850: Remove all known instances of module_repr() (#97876) 2022-10-05 11:42:26 -07:00
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
test_nis.py
test_nntplib.py
test_ntpath.py
test_numeric_tower.py gh-68163: Correct conversion of Rational instances to float (GH-25619) 2022-09-04 13:15:59 +01:00
test_opcache.py GH-94822: Don't specialize when metaclasses are involved (GH-94892) 2022-07-18 10:10:22 -07:00
test_opcodes.py
test_openpty.py
test_operator.py
test_optparse.py
test_ordered_dict.py
test_os.py gh-43414: os.get_terminal_size() now uses the actual file descriptor on Windows instead of mapping to standard handles (#93203) 2022-07-28 23:48:33 +01:00
test_ossaudiodev.py
test_osx_env.py
test_pathlib.py gh-94909: fix joining of absolute and relative Windows paths in pathlib (GH-95450) 2022-08-12 14:23:41 -07:00
test_patma.py gh-94499 Add test for private name mangling in class pattern matching (#94500) 2022-07-13 09:13:10 -07:00
test_pdb.py gh-94215: Fix error handling for line-tracing events (GH-94681) 2022-07-08 14:40:35 +02:00
test_peepholer.py gh-87092: reduce redundancy and repetition in compiler's optimization stage (GH-96713) 2022-09-13 13:03:41 +01:00
test_pep646_syntax.py
test_perf_profiler.py gh-96143: subprocess API %s/universal_newlines=/text=/g. (GH-96468) 2022-09-01 02:47:40 -07:00
test_pickle.py
test_picklebuffer.py
test_pickletools.py
test_pipes.py
test_pkg.py
test_pkgutil.py
test_platform.py gh-89545: Updates platform module to use new internal _wmi module on Windows to directly query OS properties (GH-96289) 2022-09-07 21:09:20 +01:00
test_plistlib.py
test_poll.py
test_popen.py
test_poplib.py
test_positional_only_arg.py gh-91210: Improve error message when non-default param follows default (GH-95933) 2022-09-17 10:09:28 -07:00
test_posix.py gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944) 2022-10-06 09:11:47 -07:00
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 gh-95376: Add test for names containing null (#GH-5394) 2022-08-06 18:53:19 +02:00
test_py_compile.py
test_pyclbr.py gh-95913: make the new internal classes pdb.ModuleTarget/ScriptTarget private (GH-96053) 2022-08-18 11:16:07 +01:00
test_pydoc.py gh-65961: Do not rely solely on __cached__ (GH-97990) 2022-10-06 15:40:22 -07:00
test_pyexpat.py Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_queue.py
test_quopri.py
test_raise.py
test_random.py GH-81620: Add random.binomialvariate() (GH-94719) 2022-07-13 09:46:04 -05:00
test_range.py
test_re.py gh-94675: Add a regression test for rjsmin re slowdown (GH-94685) 2022-08-03 16:19:36 -07:00
test_readline.py
test_regrtest.py
test_repl.py
test_reprlib.py gh-92734: Add indentation feature to reprlib.Repr (GH-92735) 2022-09-08 13:51:44 -05:00
test_resource.py
test_richcmp.py
test_rlcompleter.py
test_robotparser.py
test_runpy.py
test_sax.py
test_sched.py gh-90808: add more examples to test_sched.test_priority (#31144) 2022-09-20 18:34:13 -07:00
test_scope.py
test_script_helper.py
test_secrets.py
test_select.py
test_selectors.py
test_set.py Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_setcomps.py
test_shelve.py
test_shlex.py gh-94352: shlex.split() no longer accepts None (#94353) 2022-07-04 15:29:19 +02:00
test_shutil.py gh-74696: Pass root_dir to custom archivers which support it (GH-94251) 2022-10-05 12:48:59 +03:00
test_signal.py
test_site.py
test_slice.py
test_smtplib.py gh-93243: Make smtpd private before porting its users (GH-93246) 2022-08-05 17:41:29 -07:00
test_smtpnet.py
test_sndhdr.py
test_socket.py gh-95243: Mitigate the race condition in testSockName (#96173) 2022-08-24 18:37:18 -07:00
test_socketserver.py
test_sort.py gh-95173: Add a regression test for sorting tuples containing None (#95464) 2022-08-01 18:02:09 +02:00
test_source_encoding.py gh-96268: Fix loading invalid UTF-8 (#96270) 2022-09-07 14:23:54 -07:00
test_spwd.py
test_ssl.py gh-95280: Fix test_get_ciphers on systems without RSA key exchange (GH-95282) 2022-07-27 09:19:49 +02:00
test_stable_abi_ctypes.py gh-93274: Expose receiving vectorcall in the Limited API (GH-95717) 2022-08-08 14:12:05 +02:00
test_startfile.py
test_stat.py
test_statistics.py GH-95861: Add support for Spearman's rank correlation coefficient (GH-95863) 2022-08-18 13:48:27 -05:00
test_strftime.py
test_string.py
test_string_literals.py gh-94808: Coverage: Test uppercase string literal prefixes (GH-95925) 2022-09-24 13:43:16 +03:00
test_stringprep.py
test_strptime.py
test_strtod.py
test_struct.py GH-78724: Initialize struct.Struct in __new__ (GH-94532) 2022-09-25 14:32:48 +01:00
test_structmembers.py
test_structseq.py
test_subclassinit.py
test_subprocess.py gh-97825: fix AttributeError when calling subprocess.check_output(input=None) with encoding or errors args (#97826) 2022-10-04 17:47:49 -07:00
test_sunau.py
test_sundry.py
test_super.py
test_support.py
test_symtable.py
test_syntax.py gh-91210: Improve error message when non-default param follows default (GH-95933) 2022-09-17 10:09:28 -07:00
test_sys.py gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96499) 2022-09-02 09:35:08 -07:00
test_sys_setprofile.py gh-94510: Raise on re-entrant calls to sys.setprofile and sys.settrace (GH-94511) 2022-07-05 20:18:47 +02:00
test_sys_settrace.py GH-96864: Check for error between line and opcode events (GH-96880) 2022-09-19 14:02:24 -07:00
test_sysconfig.py gh-95853: Multiple ops and debug for wasm_build.py (#96744) 2022-09-11 09:51:23 +02:00
test_syslog.py
test_tabnanny.py
test_tarfile.py
test_tcl.py
test_telnetlib.py
test_tempfile.py gh-58451: Add optional delete_on_close parameter to NamedTemporaryFile (GH-97015) 2022-10-04 23:37:33 +01:00
test_textwrap.py
test_thread.py
test_threadedtempfile.py
test_threading.py GH-93503: Add thread-specific APIs to set profiling and tracing functions in the C-API (#93504) 2022-08-24 23:21:39 +01:00
test_threading_local.py
test_threadsignals.py gh-95174: Add pthread stubs for WASI (GH-95234) 2022-07-27 20:28:06 +02:00
test_time.py Remove space. (GH-97807) 2022-10-03 17:12:36 -07:00
test_timeit.py
test_timeout.py
test_tix.py
test_tokenize.py gh-94808: Coverage: Test that maximum indentation level is handled (#95926) 2022-10-06 10:39:17 -07:00
test_trace.py
test_traceback.py gh-97008: Add a Python implementation of AttributeError and NameError suggestions (#97022) 2022-10-04 15:31:16 -07:00
test_tracemalloc.py GH-96612: Skip incomplete frames in tracemalloc traces. (GH-96613) 2022-09-06 17:37:47 +01:00
test_ttk_textonly.py
test_tuple.py
test_turtle.py
test_type_annotations.py
test_type_cache.py
test_type_comments.py gh-94996: Disallow parsing pos only params with feature_version < (3, 8) (GH-94997) 2022-08-12 19:27:50 +02:00
test_typechecks.py
test_types.py gh-96348: Deprecate the 3-arg signature of coroutine.throw and generator.throw (GH-96428) 2022-09-30 09:43:02 +01:00
test_typing.py gh-96784: Cover more typing special forms in get_args() (#96791) 2022-09-13 19:35:52 -07:00
test_ucn.py
test_unary.py
test_unicode.py gh-94808: Cover PyUnicode_Count in CAPI (#96929) 2022-10-06 17:20:22 +02:00
test_unicode_file.py
test_unicode_file_functions.py gh-95853: Add script to automate WASM build (GH-95828) 2022-08-13 21:56:08 +02:00
test_unicode_identifiers.py
test_unicodedata.py gh-96954: Add tests for unicodedata.name/lookup (#96955) 2022-09-21 14:52:40 +02:00
test_univnewlines.py
test_unpack.py
test_unpack_ex.py
test_unparse.py gh-92986: Fix ast.unparse when ImportFrom.level is None (#92992) 2022-09-05 20:14:50 +03:00
test_urllib.py
test_urllib2.py Fix links to old SF bugs (#95648) 2022-08-04 18:12:35 +02:00
test_urllib2_localnet.py
test_urllib2net.py
test_urllib_response.py
test_urllibnet.py
test_urlparse.py gh-95865: Further reduce quote_from_bytes memory consumption (#96860) 2022-09-19 16:06:25 -07:00
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 gh-92897: Ensure venv --copies respects source build property of the creating interpreter (GH-92899) 2022-07-05 16:08:20 +01:00
test_wait3.py
test_wait4.py
test_wave.py gh-77171: Fixes SubFormat check to compare the entire value. Add docs (GH-97509) 2022-09-23 16:08:21 +01:00
test_weakref.py
test_weakset.py
test_webbrowser.py
test_winconsoleio.py
test_winreg.py
test_winsound.py
test_with.py
test_wmi.py gh-96684: Silently suppress COM security errors in _wmi module (GH-96690) 2022-09-08 22:02:04 +01:00
test_wsgiref.py
test_xdrlib.py
test_xml_dom_minicompat.py
test_xml_etree.py gh-91447: Fix findtext to only give an empty string on None (GH-91486) 2022-08-01 09:52:39 -07:00
test_xml_etree_c.py
test_xmlrpc.py gh-95778: CVE-2020-10735: Prevent DoS by very large int() (#96499) 2022-09-02 09:35:08 -07:00
test_xmlrpc_net.py
test_xxlimited.py
test_xxtestfuzz.py
test_yield_from.py
test_zipapp.py
test_zipfile.py gh-45108: Improve docstring and testing of ZipFile.testfile() (GH-96233) 2022-09-03 08:58:25 +03:00
test_zipfile64.py gh-45108: Improve docstring and testing of ZipFile.testfile() (GH-96233) 2022-09-03 08:58:25 +03:00
test_zipimport.py gh-91181: drop support for bytes on sys.path (GH-31934) 2022-07-16 18:07:53 -07: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
win_console_handler.py
xmltests.py
zip_cp437_header.zip
zipdir.zip