cpython/Lib/test
Miss Islington (bot) 6968f9e4d3
[3.12] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468) (#106620)
gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468)

For example:

    class Flag(enum.Flag):
        A = 0x01
        B = 0x02
        MASK = 0xff

    ~Flag.MASK is Flag(0)
(cherry picked from commit 95b7426f45)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2023-07-11 14:09:41 +02:00
..
audiodata
capath
cjkencodings
crashers
data
decimaltestdata
dtracedata
encoded_modules
imghdrdata
leakers
libregrtest [3.12] Display the sanitizer config in the regrtest header. (GH-105301) (#105342) 2023-07-05 12:54:26 +02:00
sndhdrdata
subprocessdata
support [3.12] Display the sanitizer config in the regrtest header. (GH-105301) (#105342) 2023-07-05 12:54:26 +02:00
test_asyncio [3.12] gh-105987: Fix reference counting issue in `_asyncio._swap_cur… (#106099) 2023-06-26 08:51:28 +00:00
test_capi [3.12] gh-99593: Add tests for Unicode C API (part 3) (GH-104728) (GH-106595) 2023-07-10 20:58:58 +03:00
test_ctypes
test_email [3.12] gh-102988: Detect email address parsing errors and return empty tuple to indicate the parsing error (old API) (GH-105127) (#106612) 2023-07-10 23:38:42 +00:00
test_import [3.12] gh-105979: Fix exception handling in unmarshal_frozen_code (Python/import.c) (GH-105980) (#106055) 2023-06-26 14:01:01 +05:30
test_importlib [3.12] gh-106300: Improve assertRaises(Exception) usages in tests (GH-106302) (GH-106534) 2023-07-07 14:25:24 -07:00
test_json [3.12] Revert "GH-96145: Add AttrDict to JSON module for use with object_hook (GH-96146)" (GH-105948) (#106117) 2023-06-26 21:11:49 +02:00
test_lib2to3
test_peg_generator [3.12] gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks (GH-106024) (#106450) 2023-07-05 13:05:50 +02:00
test_sqlite3
test_tkinter
test_tomllib
test_tools
test_ttk
test_unittest [3.12] gh-106300: Improve assertRaises(Exception) usages in tests (GH-106302) (GH-106534) 2023-07-07 14:25:24 -07:00
test_warnings [3.12] gh-103186: Fix or catch 'extra' stderr output from unittests (GH-103196) (#106605) 2023-07-10 21:03:32 +00:00
test_zipfile
test_zoneinfo
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 [3.12] gh-90876: Restore the ability to import multiprocessing when sys.executable is None (GH-106464) (#106494) 2023-07-06 16:25:06 -07:00
_test_venv_multiprocessing.py
_testcppext.cpp [3.12] closes gh-106479: fix typo in __cplusplus macro (gh-106480) (#106493) 2023-07-06 18:30:32 -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
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.c [3.12] gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (GH-106443) (#106444) 2023-07-05 08:57:59 +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
mailcap.txt
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
Sine-1000Hz-300ms.aif
smtpd.py
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
test__osx_support.py
test__xxinterpchannels.py
test__xxsubinterpreters.py
test_abc.py [3.12] gh-106300: Improve assertRaises(Exception) usages in tests (GH-106302) (GH-106534) 2023-07-07 14:25:24 -07:00
test_abstract_numbers.py
test_aifc.py
test_argparse.py
test_array.py
test_asdl_parser.py
test_ast.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 [3.12] gh-106197: Deduplicate tests in test_buffer (GH-106198) (#106206) 2023-06-28 15:13:57 +00:00
test_bufio.py
test_builtin.py
test_bytes.py
test_bz2.py
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 [3.12] gh-64595: Fix regression in file write logic in Argument Clinic (#106449) (#106452) 2023-07-05 13:17:09 +00:00
test_cmath.py
test_cmd.py
test_cmd_line.py
test_cmd_line_script.py [3.12] gh-103186: Fix or catch 'extra' stderr output from unittests (GH-103196) (#106605) 2023-07-10 21:03:32 +00: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 [3.12] gh-106300: Improve assertRaises(Exception) usages in tests (GH-106302) (GH-106534) 2023-07-07 14:25:24 -07: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_concurrent_futures.py [3.12] gh-94777: Fix deadlock in ProcessPoolExecutor (GH-94784) (#106609) 2023-07-10 22:49:07 +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 [3.12] GH-106152: Add PY_THROW event to cProfile (GH-106256) 2023-06-29 23:39:18 +00:00
test_crashers.py
test_crypt.py
test_csv.py
test_curses.py [3.12] gh-106194: Rename duplicated tests in test_curses (GH-106196) (#106216) 2023-06-28 21:12:12 +00: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 [3.12] gh-89392: Make test_decimal discoverable (GH-106209) (#106230) 2023-07-05 12:52:16 +02: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
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 [3.12] gh-105497: [Enum] Fix flag mask inversion when unnamed flags exist (GH-106468) (#106620) 2023-07-11 14:09:41 +02:00
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
test_fractions.py
test_frame.py
test_frozen.py
test_fstring.py [3.12] gh-106396: Special-case empty format spec to gen empty JoinedStr node (GH-106401) (#106416) 2023-07-04 13:00:47 +00:00
test_ftplib.py
test_funcattrs.py
test_functools.py [3.12] gh-106292: restore checking __dict__ in cached_property.__get__ (GH-106380) (#106469) 2023-07-05 23:31:54 +00: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
test_genericalias.py [3.12] gh-105486: Change the repr of ParamSpec list of args in GenericAlias (GH-105488) (#106297) 2023-07-01 00:32:44 +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 [3.12] GH-106160: Fix test_gzip failing under WASI, which does not have zlib. (GH-106167) (#106170) 2023-06-28 16:16:16 +05:30
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
test_httpservers.py
test_idle.py
test_imaplib.py
test_imghdr.py
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 [3.12] gh-105340: include hidden fast-locals in locals() (GH-105715) (#106470) 2023-07-05 23:31:37 +00:00
test_lltrace.py
test_locale.py
test_logging.py
test_long.py
test_longexp.py
test_lzma.py
test_mailbox.py [3.12] gh-106300: Improve assertRaises(Exception) usages in tests (GH-106302) (GH-106534) 2023-07-07 14:25:24 -07:00
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
test_minidom.py
test_mmap.py
test_module.py
test_modulefinder.py
test_monitoring.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
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 [3.12] GH-106330: Fix matching of empty path in pathlib.PurePath.match() (GH-106331) (GH-106372) 2023-07-04 21:51:36 +01:00
test_patma.py
test_pdb.py
test_peepholer.py
test_pep646_syntax.py
test_perf_profiler.py
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
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 [3.12] gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934) (#106322) 2023-07-01 23:16:14 +00:00
test_pyexpat.py
test_queue.py
test_quopri.py
test_raise.py
test_random.py
test_range.py
test_re.py [3.12] Move implementation specific RE tests to separate class (GH-106563) (#106564) 2023-07-09 10:14:39 +00:00
test_readline.py
test_regrtest.py [3.12] gh-101634: regrtest reports decoding error as failed test (GH-106169) (#106174) 2023-06-28 02:55:27 +00: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
test_setcomps.py
test_shelve.py
test_shlex.py
test_shutil.py [3.12] gh-106300: Improve assertRaises(Exception) usages in tests (GH-106302) (GH-106534) 2023-07-07 14:25:24 -07:00
test_signal.py
test_site.py
test_slice.py
test_smtplib.py
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
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
test_sys.py
test_sys_setprofile.py
test_sys_settrace.py
test_sysconfig.py
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
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_tuple.py
test_turtle.py
test_type_aliases.py [3.12] gh-105486: Change the repr of ParamSpec list of args in GenericAlias (GH-105488) (#106297) 2023-07-01 00:32:44 +00:00
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
test_univnewlines.py
test_unpack.py
test_unpack_ex.py
test_unparse.py [3.12] gh-106145: Make end_{lineno,col_offset} required on type_param nodes (GH-106224) (#106295) 2023-07-01 00:15:18 +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_uu.py
test_uuid.py [3.12] gh-103186: Fix or catch 'extra' stderr output from unittests (GH-103196) (#106605) 2023-07-10 21:03:32 +00: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_xdrlib.py
test_xml_dom_minicompat.py
test_xml_etree.py
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
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