cpython/Lib/test
Ivan Levkivskyi 9932a22897
bpo-33416: Add end positions to Python AST (GH-11605)
The majority of this PR is tediously passing `end_lineno` and `end_col_offset` everywhere. Here are non-trivial points:
* It is not possible to reconstruct end positions in AST "on the fly", some information is lost after an AST node is constructed, so we need two more attributes for every AST node `end_lineno` and `end_col_offset`.
* I add end position information to both CST and AST.  Although it may be technically possible to avoid adding end positions to CST, the code becomes more cumbersome and less efficient.
* Since the end position is not known for non-leaf CST nodes while the next token is added, this requires a bit of extra care (see `_PyNode_FinalizeEndPos`). Unless I made some mistake, the algorithm should be linear.
* For statements, I "trim" the end position of suites to not include the terminal newlines and dedent (this seems to be what people would expect), for example in
  ```python
  class C:
      pass

  pass
  ```
  the end line and end column for the class definition is (2, 8).
* For `end_col_offset` I use the common Python convention for indexing, for example for `pass` the `end_col_offset` is 4 (not 3), so that `[0:4]` gives one the source code that corresponds to the node.
* I added a helper function `ast.get_source_segment()`, to get source text segment corresponding to a given AST node. It is also useful for testing.

An (inevitable) downside of this PR is that AST now takes almost 25% more memory. I think however it is probably justified by the benefits.
2019-01-22 11:18:22 +00:00
..
audiodata
capath bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
cjkencodings
crashers
data
decimaltestdata
dtracedata
eintrdata bpo-35363, test_eintr: skip test_open() on macOS (GH-10896) 2018-12-04 17:13:33 +01:00
encoded_modules
imghdrdata
leakers
libregrtest Fix typo in test module usage message (GH-11374) 2018-12-30 21:41:39 -08:00
sndhdrdata
subprocessdata
support bpo-35283: Add deprecation warning for Thread.isAlive (GH-11454) 2019-01-17 13:14:45 +01:00
test_asyncio bpo-35568: add 'raise_signal' function (GH-11335) 2019-01-08 01:58:25 -08:00
test_email bpo-35317: Fix mktime() error in test_email (GH-10721) 2018-11-27 12:40:50 +01:00
test_import bpo-33237: Improve AttributeError message for partially initialized module. (GH-6398) 2018-10-30 13:19:51 +02:00
test_importlib bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_json bpo-31553: add --json-lines option to json.tool (#10051) 2018-11-07 12:09:32 +02:00
test_tools bpo-25094: Fix test_tools.test_sundry() on Windows (GH-8406) 2018-07-23 13:17:59 +02:00
test_warnings bpo-29564: warnings suggests to enable tracemalloc (GH-10486) 2018-11-13 02:41:00 +01:00
tracedmodules
xmltestdata
__init__.py
__main__.py
_test_multiprocessing.py bpo-35424: emit ResourceWarning at multiprocessing.Pool destruction (GH-10974) 2018-12-20 20:33:51 +01:00
allsans.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
ann_module.py
ann_module2.py
ann_module3.py
audiotest.au
audiotests.py
autotest.py
bad_coding.py
bad_coding2.py
bad_getattr.py bpo-32225: Implementation of PEP 562 (#4731) 2017-12-14 11:59:44 +01:00
bad_getattr2.py bpo-32225: Implementation of PEP 562 (#4731) 2017-12-14 11:59:44 +01:00
bad_getattr3.py bpo-32225: Implementation of PEP 562 (#4731) 2017-12-14 11:59:44 +01:00
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 bpo-35519: Rename test.bisect to test.bisect_cmd (GH-11200) 2018-12-17 22:06:10 +01:00
bytecode_helper.py
cfgparser.1
cfgparser.2
cfgparser.3
clinic.test bpo-35582: Argument Clinic: Optimize the "all boring objects" case. (GH-11520) 2019-01-11 18:01:42 +02:00
cmath_testcases.txt
coding20731.py
curses_tests.py
dataclass_module_1.py bpo-33453: Handle string type annotations in dataclasses. (GH-6768) 2018-05-15 22:44:27 -04:00
dataclass_module_1_str.py bpo-33453: Handle string type annotations in dataclasses. (GH-6768) 2018-05-15 22:44:27 -04:00
dataclass_module_2.py bpo-33453: Handle string type annotations in dataclasses. (GH-6768) 2018-05-15 22:44:27 -04:00
dataclass_module_2_str.py bpo-33453: Handle string type annotations in dataclasses. (GH-6768) 2018-05-15 22:44:27 -04:00
datetimetester.py bpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692) 2019-01-14 11:23:39 +01:00
dis_module.py
doctest_aliases.py
double_const.py
empty.vbs
exception_hierarchy.txt
ffdh3072.pem bpo-34399: 2048 bits RSA keys and DH params (#8762) 2018-08-14 12:54:19 +02:00
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 bpo-32225: Implementation of PEP 562 (#4731) 2017-12-14 11:59:44 +01:00
idnsans.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
ieee754.txt
imp_dummy.py
inspect_fodder.py bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks (GH-8864) 2018-08-24 17:18:00 +03:00
inspect_fodder2.py
keycert.passwd.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
keycert.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
keycert2.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
keycert3.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
keycert4.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
keycertecc.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
list_tests.py
lock_tests.py bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) 2018-12-17 09:36:36 +01:00
mailcap.txt
make_ssl_certs.py bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
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 bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) 2018-12-17 16:52:45 +02:00
nokia.pem
nullbytecert.pem
nullcert.pem
outstanding_bugs.py
pickletester.py bpo-33209: End framing at the end of C implementation of pickle.Pickler.dump(). (GH-6363) 2018-04-03 14:11:27 -07:00
profilee.py
pstats.pck
pycacert.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
pycakey.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
pyclbr_input.py
pydoc_mod.py
pydocfodder.py
pythoninfo.py bpo-35772: Fix test_tarfile on ppc64 (GH-11606) 2019-01-21 10:24:12 +01:00
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
regrtest.py
relimport.py
reperf.py
revocation.crl bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
sample_doctest.py
sample_doctest_no_docstrings.py
sample_doctest_no_doctests.py
secp384r1.pem bpo-32602: Test ECDSA certs (#5247) 2018-01-20 15:16:30 +01:00
selfsigned_pythontestdotnet.pem
seq_tests.py
sgml_input.html
signalinterproctester.py bpo-35426: Eliminate race condition in test_interprocess_signal (GH-11087) 2018-12-11 11:32:12 +00:00
Sine-1000Hz-300ms.aif
sortperf.py
ssl_cert.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
ssl_key.passwd.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
ssl_key.pem bpo-34542: Update test certs and keys (GH-8997) 2018-08-30 07:25:49 +02:00
ssl_servers.py
ssltests.py
string_tests.py bpo-32677: Optimize str.isascii() (GH-5356) 2018-01-28 09:59:12 +09:00
talos-2019-0758.pem bpo-35746: Fix segfault in ssl's cert parser (GH-11569) 2019-01-15 14:47:42 -08:00
test___all__.py
test___future__.py
test__locale.py
test__opcode.py bpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610) 2018-09-18 09:54:26 +03:00
test__osx_support.py bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) 2018-12-19 18:19:01 +01:00
test__xxsubinterpreters.py bpo-34651: Only allow the main interpreter to fork. (gh-9279) 2018-09-14 14:17:20 -07:00
test_abc.py bpo-34441: Fix ABC.__subclasscheck__ crash on classes with invalid __subclasses__ (GH-8835) 2018-08-20 23:04:19 +03:00
test_abstract_numbers.py
test_aifc.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_argparse.py bpo-34582: Adds JUnit XML output for regression tests (GH-9210) 2018-09-18 09:10:26 -07:00
test_array.py Include the highest pickle protocol in a couple of tests. (GH-10735) 2018-11-27 07:40:49 +02:00
test_asdl_parser.py bpo-33416: Add end positions to Python AST (GH-11605) 2019-01-22 11:18:22 +00:00
test_ast.py bpo-33416: Add end positions to Python AST (GH-11605) 2019-01-22 11:18:22 +00:00
test_asyncgen.py bpo-34728: Fix asyncio tests to run under "-Werror" (GH-9661) 2018-10-02 13:53:06 -04:00
test_asynchat.py
test_asyncore.py bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) 2018-12-17 09:36:36 +01:00
test_atexit.py bpo-31901: atexit callbacks should be run at subinterpreter shutdown (#4611) 2017-12-20 11:17:58 +01:00
test_audioop.py
test_augassign.py
test_base64.py bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351) 2018-07-24 12:52:51 +03:00
test_baseexception.py bpo-32297: Few misspellings found in Python source code comments. (#4803) 2017-12-14 13:04:53 +02:00
test_bdb.py bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537) 2018-12-05 21:32:16 +02:00
test_bigaddrspace.py
test_bigmem.py bpo-5438: Update memory requirements and optimize test_bigmem.py. (GH-11123) 2018-12-20 09:34:51 +02:00
test_binascii.py bpo-34736: improve error message for invalid length b64decode inputs (GH-9563) 2018-09-27 22:57:22 -07:00
test_binhex.py
test_binop.py
test_bisect.py
test_bool.py
test_buffer.py bpo-34201: Tweak test_buffer. (GH-8481) 2018-07-26 17:34:07 +03:00
test_bufio.py
test_builtin.py bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561) 2019-01-15 13:26:38 +02:00
test_bytes.py bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516) 2019-01-12 09:22:29 +02:00
test_bz2.py bpo-42349: Switch to test.support.unlink per review by Serhiy Storchaka (GH-8529) 2018-07-28 18:27:11 +01:00
test_c_locale_coercion.py bpo-35336: Fix PYTHONCOERCECLOCALE=1 (GH-10806) 2018-11-30 11:34:47 +01:00
test_calendar.py
test_call.py bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438) 2018-12-21 16:45:13 +02:00
test_capi.py bpo-35059: Enhance _PyObject_AssertFailed() (GH-10642) 2018-11-21 23:53:44 +01:00
test_cgi.py bpo-35028: cgi: Fix max_num_fields off by one error (GH-9973) 2018-10-23 01:14:35 -07:00
test_cgitb.py bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442) 2018-04-29 20:48:33 +03:00
test_charmapcodec.py
test_class.py bpo-1617161: Make the hash and equality of methods not depending on the value of self. (GH-7848) 2018-07-31 09:18:24 +03:00
test_clinic.py bpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306) 2018-12-25 10:17:28 +02:00
test_cmath.py closes bpo-34640: Remove the TANH_PRESERVES_ZERO_SIGN configure check. (GH-9206) 2018-09-12 06:51:18 -07:00
test_cmd.py bpo-32746: Fix multiple typos (GH-5144) 2018-02-03 19:36:10 -05:00
test_cmd_line.py Revert "bpo-34589: Add -X coerce_c_locale command line option (GH-9378)" (GH-9430) 2018-09-19 14:56:36 -07:00
test_cmd_line_script.py bpo-34726: Fix handling of hash-based pycs in zipimport. (GH-10327) 2018-11-07 20:34:59 +02:00
test_code.py
test_code_module.py
test_codeccallbacks.py bpo-32583: Fix possible crashing in builtin Unicode decoders (#5325) 2018-01-31 20:48:05 +08:00
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-35372: Fix the code page decoder for input > 2 GiB. (GH-10848) 2018-12-03 10:36:45 +02:00
test_codeop.py Revert "bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)" (GH-7919) 2018-06-26 02:11:06 +02:00
test_collections.py bpo-32492: Tweak _collections._tuplegetter. (GH-11367) 2018-12-31 14:15:16 +02:00
test_colorsys.py
test_compare.py
test_compile.py bpo-34100: compile: Re-enable frozenset merging (GH-10760) 2018-11-28 16:58:46 +01:00
test_compileall.py bpo-29877: compileall: import ProcessPoolExecutor only when needed (GH-4856) 2018-11-23 09:06:55 -08:00
test_complex.py bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274) 2018-07-14 12:06:43 +09:00
test_concurrent_futures.py bpo-33716, test_concurrent_futures: increase timeout (GH-7828) 2018-06-21 12:30:37 +01:00
test_configparser.py bpo-32108: Don't clear configparser values if key is assigned to itself (GH-7588) 2018-06-12 13:37:51 -07:00
test_contains.py
test_context.py bpo-33985: Implement ContextVar.name attribute. (GH-7980) 2018-06-28 13:20:29 -04:00
test_contextlib.py bpo-35202: Remove unused imports in Lib directory (GH-10450) 2018-11-15 21:59:19 +09:00
test_contextlib_async.py bpo-34183: Fix running Lib/test/test_contextlib_async.py as a script. (GH-8381) 2018-07-23 23:38:31 +03:00
test_copy.py
test_copyreg.py
test_coroutines.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_cprofile.py bpo-32512: Add -m option to profile for profiling modules (#5132) 2018-11-05 22:03:46 +10:00
test_crashers.py
test_crypt.py
test_csv.py bpo-34197: Make _csv.Dialect attributes booleans. (GH-8440) 2018-07-26 13:21:09 +03:00
test_ctypes.py
test_curses.py bpo-31680: Add curses.ncurses_version. (GH-4217) 2018-10-30 13:22:42 +02:00
test_dataclasses.py bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916) 2018-10-19 12:54:50 -04:00
test_datetime.py
test_dbm.py Use more specific asserts in dbm tests. (GH-7786) 2018-06-19 13:31:48 +03:00
test_dbm_dumb.py bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error (#6295) 2018-12-12 20:46:55 +08:00
test_dbm_gnu.py bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error (#6295) 2018-12-12 20:46:55 +08:00
test_dbm_ndbm.py bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error (#6295) 2018-12-12 20:46:55 +08:00
test_decimal.py bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284) 2018-11-05 16:20:25 +02:00
test_decorators.py
test_defaultdict.py
test_deque.py Minor performance tweak for deque.index() with a start argument (GH-9440) 2018-09-21 01:46:41 -07:00
test_descr.py bpo-25750: Add test on bad descriptor __get__() (GH-9084) 2018-10-19 23:50:06 +02:00
test_descrtut.py
test_devpoll.py
test_dict.py Include the highest pickle protocol in a couple of tests. (GH-10735) 2018-11-27 07:40:49 +02:00
test_dict_version.py
test_dictcomps.py bpo-35169: Improve error messages for forbidden assignments. (GH-10342) 2018-11-20 19:27:16 +02:00
test_dictviews.py bpo-18533: Avoid RecursionError from repr() of recursive dictview (#4823) 2018-01-26 07:46:01 -08:00
test_difflib.py Revert "bpo-35603: Escape table header of make_table output that can cause potential XSS. (GH-11341)" (GH-11356) 2019-01-02 14:49:25 +02:00
test_difflib_expect.html
test_dis.py bpo-12458: Fix line numbers for multiline expressions. (GH-8774) 2018-09-17 15:17:29 +03:00
test_distutils.py
test_doctest.py bpo-24746: Fix doctest failures when running the testsuite with -R (#11501) 2019-01-10 06:29:40 -08:00
test_doctest.txt
test_doctest2.py
test_doctest2.txt
test_doctest3.txt
test_doctest4.txt
test_docxmlrpc.py
test_dtrace.py bpo-32667: Fix tests when $PATH contains a file (#5322) 2018-01-25 19:06:05 +01:00
test_dummy_thread.py bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) 2018-12-17 09:36:36 +01:00
test_dummy_threading.py
test_dynamic.py
test_dynamicclassattribute.py
test_eintr.py bpo-35363: test_eintr uses print(flush=True) (GH-10990) 2018-12-06 14:16:21 +01:00
test_embed.py bpo-35313: Cleanup test_embed.py (GH-10716) 2018-11-26 12:37:34 +01:00
test_ensurepip.py
test_enum.py bpo-34536: Cleanup test_enum imports (GH-9979) 2018-10-19 16:57:19 -07:00
test_enumerate.py bpo-33462: Add __reversed__ to dict and dict views (GH-6827) 2018-11-06 09:38:54 +09:00
test_eof.py
test_epoll.py bpo-32568: make select.epoll() and its docs consistent (#7840) 2018-06-30 15:43:23 +03:00
test_errno.py
test_exception_hierarchy.py bpo-35504: Fix a SystemError when delete the characters_written attribute of an OSError. (GH-11172) 2018-12-17 16:43:14 +02:00
test_exception_variations.py
test_exceptions.py bpo-31241: Fix AST node position for list and generator comprehensions. (GH-10633) 2018-11-27 09:40:29 +02:00
test_extcall.py bpo-35634: Raise an error when first passed kwargs contains duplicated keys. (GH-11438) 2019-01-12 10:12:24 +02:00
test_faulthandler.py bpo-35568: add 'raise_signal' function (GH-11335) 2019-01-08 01:58:25 -08:00
test_fcntl.py
test_file.py bpo-32236: open() emits RuntimeWarning if buffering=1 for binary mode (GH-4842) 2018-10-20 02:22:31 +02:00
test_file_eintr.py
test_filecmp.py
test_fileinput.py bpo-9372: Deprecate several __getitem__ methods (GH-8609) 2018-08-11 09:05:04 +03:00
test_fileio.py
test_finalization.py
test_float.py bpo-35560: Remove assertion from format(float, "n") (GH-11288) 2019-01-07 16:09:14 +01:00
test_flufl.py bpo-34084: Fix setting an error message for the "Barry as BDFL" easter egg. (GH-8262) 2018-07-23 23:41:11 +03:00
test_fnmatch.py bpo-32775: Fix regular expression warnings in fnmatch. (#5583) 2018-02-09 13:30:19 +02:00
test_fork1.py
test_format.py
test_fractions.py bpo-35588: Speed up mod, divmod and floordiv operations for Fraction type (#11322) 2019-01-02 14:22:06 +02:00
test_frame.py bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) 2018-12-17 16:52:45 +02:00
test_frozen.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_fstring.py bpo-16806: Fix lineno and col_offset for multi-line string tokens (GH-10021) 2019-01-13 13:05:13 +09:00
test_ftplib.py bpo-34391: Fix ftplib test for TLS 1.3 (GH-8787) 2018-08-16 19:43:44 +02:00
test_funcattrs.py
test_functools.py bpo-32321: Add pure Python fallback for functools.reduce (GH-8548) 2018-10-25 16:02:10 +02:00
test_future.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_future3.py
test_future4.py bpo-35412: Add testcase to test_future4 (GH-11131) 2018-12-12 18:38:34 +01:00
test_future5.py
test_gc.py bpo-9263: Dump Python object on GC assertion failure (GH-10062) 2018-10-25 17:31:10 +02:00
test_gdb.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_generator_stop.py
test_generators.py bpo-35169: Improve error messages for forbidden assignments. (GH-10342) 2018-11-20 19:27:16 +02:00
test_genericclass.py bpo-32226: Make __class_getitem__ an automatic class method. (#5098) 2018-01-05 00:21:41 +02:00
test_genericpath.py bpo-35471: Remove the macpath module (GH-11129) 2018-12-14 13:37:26 +01:00
test_genexps.py bpo-35169: Improve error messages for forbidden assignments. (GH-10342) 2018-11-20 19:27:16 +02:00
test_getargs2.py bpo-34193: Fix pluralization in getargs.c and test cases. (GH-8438) 2018-12-21 16:45:13 +02:00
test_getopt.py
test_getpass.py
test_gettext.py bpo-2504: Add pgettext() and variants to gettext. (GH-7253) 2018-11-07 16:12:20 +02:00
test_glob.py Use assertCountEqual instead of assertEqual. (#5223) 2018-01-17 14:57:57 -08:00
test_global.py bpo-34683: Make SyntaxError column offsets consistently 1-indexed (gh-9338) 2018-09-24 14:12:49 -07:00
test_grammar.py bpo-34850: Emit a warning for "is" and "is not" with a literal. (GH-9642) 2019-01-18 07:47:48 +02:00
test_grp.py
test_gzip.py bpo-34898: Add mtime parameter to gzip.compress(). (GH-9704) 2018-11-07 11:50:23 +02:00
test_hash.py
test_hashlib.py bpo-34922: Fix integer overflow in the digest() and hexdigest() methods (GH-9751) 2018-10-11 07:41:00 +03:00
test_heapq.py
test_hmac.py bpo-33604: Remove deprecated HMAC default value marked for removal in 3.8 (GH-7063) 2018-09-10 11:10:01 -07:00
test_html.py
test_htmlparser.py
test_http_cookiejar.py bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284) 2018-11-05 16:20:25 +02:00
test_http_cookies.py bpo-991266: Fix quoting of Comment attribute of SimpleCookie (GH-6555) 2018-04-23 02:48:11 +03:00
test_httplib.py bpo-33365: print the header values beside the keys (GH-6611) 2018-06-19 16:20:58 +03:00
test_httpservers.py Adds IPv6 support when invoking http.server directly. (GH-10595) 2018-11-26 10:43:38 -08:00
test_idle.py Improve comments in test_idle.py. (GH-7057) 2018-05-22 13:24:04 -04:00
test_imaplib.py bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634) 2018-08-07 05:12:18 +03:00
test_imghdr.py
test_imp.py closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130) 2018-07-06 20:41:06 -07:00
test_index.py
test_inspect.py bpo-34890: Make iscoroutinefunction, isgeneratorfunction and isasyncgenfunction work with functools.partial (GH-9903) 2018-10-26 12:19:14 +01:00
test_int.py
test_int_literal.py
test_io.py bpo-35214: Skip test_io tests that'd cause a huge malloc under msan (#11385) 2018-12-30 20:17:57 -08:00
test_ioctl.py
test_ipaddress.py bpo-27683: Fix a regression for host() of ipaddress network objects (GH-6016) 2018-03-21 08:25:13 +08:00
test_isinstance.py
test_iter.py
test_iterlen.py
test_itertools.py bpo-34659: Adds initial kwarg to itertools.accumulate() (GH-9345) 2018-09-23 17:34:59 -07:00
test_keyword.py
test_keywordonlyarg.py
test_kqueue.py
test_largefile.py bpo-24658: Fix read/write greater than 2 GiB on macOS (GH-1705) 2018-10-18 01:05:04 +02:00
test_lib2to3.py
test_linecache.py
test_list.py bpo-33234 Improve list() pre-sizing for inputs with known lengths (GH-9846) 2018-10-28 20:16:26 +00:00
test_listcomps.py
test_lltrace.py bpo-34113: Fix a crash when using LLTRACE is on (GH-8517) 2018-07-31 22:55:14 +02:00
test_locale.py Revert "bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)" (GH-7919) 2018-06-26 02:11:06 +02:00
test_logging.py bpo-34997: Fix test_logging.ConfigDictTest.test_out_of_order (GH-9913) 2018-10-16 15:17:57 +01:00
test_long.py bpo-33073: Rework int.as_integer_ratio() implementation (GH-9303) 2018-10-19 23:46:31 +02:00
test_longexp.py
test_lzma.py bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995) 2018-02-13 19:28:33 +09:00
test_mailbox.py bpo-31522: mailbox.get_string: pass from_ parameter to get_bytes (#9857) 2018-10-18 20:21:47 -04:00
test_mailcap.py
test_marshal.py Fix fuzz testing for marshal.loads(). (GH-8106) 2018-07-05 12:19:19 +03:00
test_math.py bpo-34838: Use subclass_of for math.dist. (GH-9659) 2019-01-12 08:23:41 +02:00
test_memoryio.py bpo-30416: Protect the optimizer during constant folding. (#4860) 2017-12-15 14:11:43 +02:00
test_memoryview.py bpo-33176: Add a toreadonly() method to memoryviews. (GH-6466) 2018-04-14 19:49:21 +02:00
test_metaclass.py
test_mimetypes.py bpo-34926: Make mimetypes.guess_type accept os.PathLike objects (GH-9777) 2018-10-10 16:46:44 +02:00
test_minidom.py bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) 2018-12-10 11:12:53 +01:00
test_mmap.py bpo-34754: Fix test_flush_return_value on FreeBSD (GH-9451) 2018-09-20 19:53:06 +03:00
test_module.py bpo-32225: Implementation of PEP 562 (#4731) 2017-12-14 11:59:44 +01:00
test_modulefinder.py
test_msilib.py
test_multibytecodec.py bpo-33578: Fix getstate/setstate for CJK decoder (GH-10290) 2018-11-02 12:29:40 +09:00
test_multiprocessing_fork.py bpo-35412: Skip test_multiprocessing_fork and test_multiprocessing_forkserver on Windows (GH-11086) 2018-12-11 11:31:16 +00:00
test_multiprocessing_forkserver.py bpo-35412: Skip test_multiprocessing_fork and test_multiprocessing_forkserver on Windows (GH-11086) 2018-12-11 11:31:16 +00:00
test_multiprocessing_main_handling.py bpo-35424: Fix test_multiprocessing_main_handling (GH-11223) 2018-12-18 23:54:33 +01:00
test_multiprocessing_spawn.py
test_netrc.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_nis.py
test_nntplib.py
test_normalization.py closes bpo-32285: Add unicodedata.is_normalized. (GH-4806) 2018-11-04 15:58:24 -08:00
test_ntpath.py bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) 2018-10-25 11:26:37 -04:00
test_numeric_tower.py
test_opcodes.py bpo-16806: Fix lineno and col_offset for multi-line string tokens (GH-10021) 2019-01-13 13:05:13 +09:00
test_openpty.py
test_operator.py bpo-35664: Optimize operator.itemgetter (GH-11435) 2019-01-07 09:38:41 -07:00
test_optparse.py
test_ordered_dict.py bpo-34574: Prevent OrderedDict iterators from exhaustion during pickling. (GH-9051) 2018-10-20 08:20:39 +03:00
test_os.py bpo-35371: Fix possible crash in os.utime() on Windows. (GH-10844) 2018-12-01 14:30:20 +02:00
test_ossaudiodev.py bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) 2018-12-17 09:36:36 +01:00
test_osx_env.py
test_parser.py bpo-33416: Add end positions to Python AST (GH-11605) 2019-01-22 11:18:22 +00:00
test_pathlib.py bpo-35488: Add tests for ** glob matching in pathlib (GH-11171) 2019-01-06 12:31:29 -08:00
test_pdb.py bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328) 2018-06-01 20:34:09 -07:00
test_peepholer.py bpo-32925: Optimized iterating and containing test for literal lists (GH-5842) 2018-03-11 10:54:47 +02:00
test_pickle.py Fix upsizing of marks stack in pickle module. (GH-8860) 2018-08-25 10:54:40 +03:00
test_pickletools.py bpo-31993: Do not allocate large temporary buffers in pickle dump. (#4353) 2018-01-06 17:18:54 +02:00
test_pipes.py
test_pkg.py bpo-34200: Fix non-determinism of test_pkg (GH-9248) 2018-09-12 17:58:40 -07:00
test_pkgimport.py
test_pkgutil.py
test_platform.py bpo-35346, platform: replace os.popen() with subprocess (GH-10786) 2018-12-07 11:10:33 +01:00
test_plistlib.py
test_poll.py bpo-20260: Implement non-bitwise unsigned int converters for Argument Clinic. (GH-8434) 2018-07-26 13:22:16 +03:00
test_popen.py
test_poplib.py bpo-33618: Enable TLS 1.3 in tests (GH-7079) 2018-05-23 22:24:45 +02:00
test_posix.py bpo-35794: Catch PermissionError in test_no_such_executable (GH-11635) 2019-01-21 14:35:43 +00:00
test_posixpath.py bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) 2018-12-05 16:49:35 +01:00
test_pow.py
test_pprint.py
test_print.py bpo-32685: Improve suggestion for print statement (GH-5375) 2018-01-28 20:56:02 +10:00
test_profile.py bpo-32512: Add -m option to profile for profiling modules (#5132) 2018-11-05 22:03:46 +10:00
test_property.py bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995) 2018-02-13 19:28:33 +09:00
test_pstats.py bpo-29237: Create enum for pstats sorting options (GH-5103) 2018-01-25 20:49:56 -08:00
test_pty.py
test_pulldom.py bpo-17239: Disable external entities in SAX parser (GH-9217) 2018-09-23 00:50:25 -07:00
test_pwd.py
test_py_compile.py bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607) 2018-10-10 18:43:14 +02:00
test_pyclbr.py bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445) 2018-09-27 17:42:37 +03:00
test_pydoc.py bpo-35619: Improve support of custom data descriptors in help() and pydoc. (GH-11366) 2019-01-15 10:53:18 +02:00
test_pyexpat.py
test_queue.py bpo-35202: Remove unused imports in Lib directory. (GH-10446) 2018-11-10 09:22:02 +02:00
test_quopri.py
test_raise.py bpo-30579: Allow TracebackType creation and tb_next mutation from Python (GH-4793) 2018-01-07 23:30:18 +10:00
test_random.py bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934) 2018-12-23 22:54:25 -08:00
test_range.py bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284) 2018-11-05 16:20:25 +02:00
test_re.py bpo-30688: Support \N{name} escapes in re patterns. (GH-5588) 2018-02-10 00:08:17 +02:00
test_readline.py Skip test_readline.test_nonascii() on C locale (#5203) 2018-01-16 17:34:34 +01:00
test_regrtest.py bpo-35568: add 'raise_signal' function (GH-11335) 2019-01-08 01:58:25 -08:00
test_repl.py
test_reprlib.py
test_resource.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_richcmp.py
test_rlcompleter.py
test_robotparser.py bpo-21475: Support the Sitemap extension in robotparser (GH-6883) 2018-05-16 10:52:07 -04:00
test_runpy.py
test_sax.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_sched.py
test_scope.py
test_script_helper.py bpo-32942: Fix environment dependent test_script_helper (GH-8034) 2018-07-04 12:10:15 +02:00
test_secrets.py
test_select.py
test_selectors.py bpo-33522: Enable CI builds on Visual Studio Team Services (#6865) 2018-05-16 17:50:29 -04:00
test_set.py
test_setcomps.py
test_shelve.py
test_shlex.py
test_shutil.py bpo-20849: add dirs_exist_ok arg to shutil.copytree (patch by Josh Bronson) 2018-12-28 19:03:40 +01:00
test_signal.py bpo-35568: add 'raise_signal' function (GH-11335) 2019-01-08 01:58:25 -08:00
test_site.py bpo-33306: Improve SyntaxError messages for unbalanced parentheses. (GH-6516) 2018-12-17 17:34:14 +02:00
test_slice.py
test_smtpd.py
test_smtplib.py bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284) 2018-11-05 16:20:25 +02:00
test_smtpnet.py
test_sndhdr.py
test_socket.py Make sure file object is close if socket.create_connection fails (GH-11334) 2018-12-29 01:42:16 +00:00
test_socketserver.py
test_sort.py bpo-28685: Optimize sorted() list.sort() with type-specialized comparisons (#582) 2018-01-28 19:03:23 -08:00
test_source_encoding.py
test_spwd.py closes bpo-34594: Don't hardcode errno values in the tests. (GH-9076) 2018-09-06 11:43:30 -07:00
test_sqlite.py bpo-27645: Add support for native backup facility of SQLite (GH-4238) 2018-03-11 01:08:31 +03:00
test_ssl.py bpo-35045: Accept TLSv1 default in min max test (GH-11510) 2019-01-18 16:09:30 +01:00
test_startfile.py
test_stat.py closes bpo-34353: Add sockets to stat.filemode fallback python implementation. (GH-8703) 2018-08-09 22:12:08 -07:00
test_statistics.py
test_strftime.py
test_string.py bpo-31672: Restore the former behavior when override flags in Template. (#5099) 2018-01-04 19:20:11 +02:00
test_string_literals.py bpo-16806: Fix lineno and col_offset for multi-line string tokens (GH-10021) 2019-01-13 13:05:13 +09:00
test_stringprep.py
test_strptime.py closes bpo-35171: Fix test_TimeRE_recreation_timezone failure on some systems. (GH-10347) 2018-11-05 20:29:07 -08:00
test_strtod.py
test_struct.py bpo-30249: Improve struct.unpack_from() error messages (GH-6059) 2018-03-11 02:58:52 +08:00
test_structmembers.py
test_structseq.py
test_subclassinit.py
test_subprocess.py bpo-32236: open() emits RuntimeWarning if buffering=1 for binary mode (GH-4842) 2018-10-20 02:22:31 +02:00
test_sunau.py bpo-32056: Improve exceptions in aifc, wave and sunau. (GH-5951) 2018-03-18 09:55:53 +02:00
test_sundry.py bpo-19382: Adding test cases for module tabnanny (GH-851) 2018-06-14 09:05:35 +02:00
test_super.py bpo-23722: Raise a RuntimeError for absent __classcell__. (GH-6931) 2018-05-20 08:48:12 +03:00
test_support.py bpo-34812: subprocess._args_from_interpreter_flags(): add isolated (GH-10675) 2018-11-23 17:54:20 +01:00
test_symbol.py bpo-30455: Generate all token related code and docs from Grammar/Tokens. (GH-10370) 2018-12-22 11:18:40 +02:00
test_symtable.py bpo-34983: Expose symtable.Symbol.is_nonlocal() in the symtable module (GH-9872) 2018-10-20 01:46:00 +01:00
test_syntax.py bpo-35169: Improve error messages for forbidden assignments. (GH-10342) 2018-11-20 19:27:16 +02:00
test_sys.py bpo-35202: Remove unused imports in Lib directory. (GH-10446) 2018-11-10 09:22:02 +02:00
test_sys_setprofile.py bpo-34125: Enable profiling of method_descriptor in all cases (GH-8416) 2018-09-19 03:06:20 -07:00
test_sys_settrace.py bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328) 2018-06-01 20:34:09 -07:00
test_sysconfig.py bpo-34011: Fixes missing venv files and other tests (GH-9458) 2018-09-20 13:38:34 -07:00
test_syslog.py
test_tabnanny.py closes bpo-34594: Don't hardcode errno values in the tests. (GH-9076) 2018-09-06 11:43:30 -07:00
test_tarfile.py bpo-35772: Fix test_tarfile on ppc64 (GH-11606) 2019-01-21 10:24:12 +01:00
test_tcl.py bpo-33974: Fix passing special characters to ttk widgets. (GH-7986) 2018-06-30 09:20:28 +03:00
test_telnetlib.py
test_tempfile.py bpo-27300: Add the errors parameter to tempfile classes. (GH-6696) 2018-05-23 08:07:01 +03:00
test_textwrap.py
test_thread.py bpo-35202: Remove unused imports in Lib directory. (GH-10446) 2018-11-10 09:22:02 +02:00
test_threaded_import.py
test_threadedtempfile.py
test_threading.py bpo-35283: Add deprecation warning for Thread.isAlive (GH-11454) 2019-01-17 13:14:45 +01:00
test_threading_local.py test_threading_local: add missing "import sys" (GH-8049) 2019-01-06 23:10:55 +01:00
test_threadsignals.py bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) 2018-12-17 09:36:36 +01:00
test_time.py bpo-34373: fix test_mktime and test_pthread_getcpuclickid tests on AIX (GH-8726) 2018-12-28 23:57:37 +10:00
test_timeit.py
test_timeout.py bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) 2018-12-17 09:36:36 +01:00
test_tix.py
test_tk.py
test_tokenize.py bpo-30455: Generate all token related code and docs from Grammar/Tokens. (GH-10370) 2018-12-22 11:18:40 +02:00
test_trace.py bpo-34876: Change the lineno of the AST for decorated function and class. (GH-9731) 2018-10-30 13:16:02 +02:00
test_traceback.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_tracemalloc.py bpo-35053: Enhance tracemalloc to trace free lists (GH-10063) 2018-10-25 13:31:16 +02:00
test_ttk_guionly.py
test_ttk_textonly.py
test_tuple.py bpo-34751: improved hash function for tuples (GH-9471) 2018-10-27 20:06:38 -04:00
test_turtle.py
test_typechecks.py
test_types.py bpo-32265: Classify class and static methods of builtin types. (#4776) 2017-12-15 14:13:41 +02:00
test_typing.py bpo-35341: Add generic version of OrderedDict to typing (GH-10850) 2018-12-02 15:53:14 +00:00
test_ucn.py
test_unary.py
test_unicode.py bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516) 2019-01-12 09:22:29 +02:00
test_unicode_file.py
test_unicode_file_functions.py
test_unicode_identifiers.py
test_unicodedata.py bpo-29456: Fix bugs in unicodedata.normalize: u1176, u11a7 and u11c3 (GH-1958) 2018-06-15 20:03:14 +08:00
test_unittest.py
test_univnewlines.py
test_unpack.py bpo-32259: Make a TypeError message when unpack non-iterable more specific. (#4903) 2017-12-26 12:30:41 +02:00
test_unpack_ex.py bpo-32259: Make a TypeError message when unpack non-iterable more specific. (#4903) 2017-12-26 12:30:41 +02:00
test_urllib.py
test_urllib2.py
test_urllib2_localnet.py bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091) 2018-07-10 12:46:44 +03:00
test_urllib2net.py bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907) 2018-12-05 01:58:31 +01:00
test_urllib_response.py
test_urllibnet.py
test_urlparse.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_userdict.py
test_userlist.py
test_userstring.py
test_utf8_mode.py bpo-35202: Remove unused imports in tests. (GH-10561) 2018-11-16 17:32:58 +02:00
test_utf8source.py
test_uu.py bpo-33687: Fix call to os.chmod() in uu.decode() (GH-7282) 2019-01-17 17:15:53 +03:00
test_uuid.py bpo-35701: Added __weakref__ slot to uuid.UUID (GH-11570) 2019-01-17 13:16:51 +01:00
test_venv.py bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029) 2018-12-10 08:11:21 -08:00
test_wait3.py
test_wait4.py
test_wave.py bpo-32056: Improve exceptions in aifc, wave and sunau. (GH-5951) 2018-03-18 09:55:53 +02:00
test_weakref.py bpo-32746: Fix multiple typos (GH-5144) 2018-02-03 19:36:10 -05:00
test_weakset.py
test_webbrowser.py bpo-35308: Fix regression where BROWSER env var is not respected. (GH-10693) 2018-11-26 23:29:45 +02:00
test_winconsoleio.py bpo-31966: Fixed WindowsConsoleIO.write() for writing empty data. (GH-5754) 2018-02-24 18:55:51 +02:00
test_winreg.py
test_winsound.py
test_with.py bpo-32670: Enforce PEP 479. (#5327) 2018-01-26 15:24:24 -05:00
test_wsgiref.py Revert "bpo-35565: Add detail to assertion failure message in wsgiref" (GH-11317) 2018-12-25 15:59:07 -08:00
test_xdrlib.py
test_xml_dom_minicompat.py
test_xml_etree.py bpo-34160: Preserve user specified order of Element attributes in html. (GH-10190) 2018-10-29 19:31:04 +02:00
test_xml_etree_c.py bpo-35502: Fix reference leaks in ElementTree.TreeBuilder. (GH-11170) 2018-12-18 22:29:14 +02:00
test_xmlrpc.py bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196) 2018-12-17 16:16:24 +02:00
test_xmlrpc_net.py
test_xxtestfuzz.py
test_yield_from.py
test_zipapp.py bpo-32297: Few misspellings found in Python source code comments. (#4803) 2017-12-14 13:04:53 +02:00
test_zipfile.py bpo-34341: Fix appending to ZIP archives with the ZIP64 extension. (GH-8683) 2018-09-17 15:36:40 +03:00
test_zipfile64.py bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182) 2018-12-17 09:36:36 +01:00
test_zipimport.py bpo-5950: Support reading zips with comments in zipimport (#9548) 2018-09-25 15:15:47 -04:00
test_zipimport_support.py
test_zlib.py bpo-34582: Update syntax of Azure Pipelines builds (GH-9521) 2018-09-24 07:44:50 -04:00
testcodec.py
testtar.tar
tf_inherit_check.py
threaded_import_hangers.py
time_hashlib.py bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180) 2018-12-17 11:30:34 +01:00
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