cpython/Lib/test
Maxwell A McKinnon cf57cabef8 bpo-32689: Updates shutil.move to allow for Path objects to be used as source arg (GH-15326)
Important work originally done by @emilyemorehouse two years ago and nearly ready to go in.

This bug has affected many people and in some cases has been a dealbreaker to the adoption of the otherwise wonderful pathlib and PEP519. https://stackoverflow.com/questions/33625931/copy-file-with-pathlib-in-python.

This adds the outstanding test request from that PR @vstinner (https://github.com/python/cpython/pull/5393).

Test fails without the change, passes with it, along with every other test in test_shutil.

Some variants were experimented with to make the one line change and the most performant one was picked.


# Added Test for PathLike directory destination, the current fail case

```
Lib/test/test_shutil.py::TestMove::test_move_file_pathlike FAILED                                                               [100%]

============================================================== FAILURES ===============================================================
__________________________________________________ TestMove.test_move_file_pathlike ___________________________________________________

self = <test.test_shutil.TestMove testMethod=test_move_file_pathlike>

    def test_move_file_pathlike(self):
        # Move a file to another location on the same filesystem.
        src = pathlib.Path(self.src_file)
>       self._check_move_file(src, self.dst_dir, self.dst_file)

Lib/test/test_shutil.py:1563:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Lib/test/test_shutil.py:1545: in _check_move_file
    shutil.move(src, dst)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py:562: in move
    real_dst = os.path.join(dst, _basename(src))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

path = PosixPath('/var/folders/r2/psq74t5x3nbfzlph8bh2pvdw0000gn/T/tmp9ie0wh9_/foo')

    def _basename(path):
        # A basename() variant which first strips the trailing slash, if present.
        # Thus we always get the last component of the path, even for directories.
        sep = os.path.sep + (os.path.altsep or '')
>       return os.path.basename(path.rstrip(sep))
E       AttributeError: 'PosixPath' object has no attribute 'rstrip'

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/shutil.py:526: AttributeError
============================================== 1 failed, 102 deselected in 0.30 seconds ===============================================
```

After change:

```
========================================================= test session starts =========================================================
platform darwin -- Python 3.7.4, pytest-5.0.1, py-1.8.0, pluggy-0.12.0 -- /Users/maxwellmckinnon/.venvs/TA3.7/bin/python3.7
cachedir: .pytest_cache
rootdir: /Users/maxwellmckinnon/dev/cpython
plugins: cov-2.7.1, mock-1.10.4
collected 103 items / 102 deselected / 1 selected

Lib/test/test_shutil.py::TestMove::test_move_file_pathlike PASSED                                                               [100%]

============================================== 1 passed, 102 deselected in 0.06 seconds ===============================================
```

Running all the tests in test_shutil.py
```
╰─ pytest Lib/test/test_shutil.py -v
========================================================= test session starts =========================================================
platform darwin -- Python 3.7.4, pytest-5.0.1, py-1.8.0, pluggy-0.12.0 -- /Users/maxwellmckinnon/.venvs/TA3.7/bin/python3.7
cachedir: .pytest_cache
rootdir: /Users/maxwellmckinnon/dev/cpython
plugins: cov-2.7.1, mock-1.10.4
collected 103 items

Lib/test/test_shutil.py::TestShutil::test_chown PASSED                                                                          [  0%]
Lib/test/test_shutil.py::TestShutil::test_copy PASSED                                                                           [  1%]
...
Lib/test/test_shutil.py::TermsizeTests::test_stty_match SKIPPED                                                                 [ 99%]
Lib/test/test_shutil.py::PublicAPITests::test_module_all_attribute PASSED                                                       [100%]

================================================ 96 passed, 7 skipped in 1.25 seconds =================================================
```

# Performance Considerations
Is it considered poor form to get rid of _basename altogether and make use of pathlib in the move function? I'm not sure if the idea is for all these modules to strictly avoid circular dependencies. They are already using os.path which is just as much a citizen in 3.8 as pathlib right?

e.g.

`real_dst = os.path.join(dst, _basename(src))`
becomes
`real_dst = Path(dst) / Path(src).name`

I've looked around and familiarized myself, and I now think importing pathlib here is fine. My only remaining concern is that of performance.

Here's the performance difference for this step. 

```
In [46]: %timeit real_dst = os.path.join("a/b/c", _basename('b/'))
2.71 µs ± 62.6 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In [47]: %timeit real_dst = Path("a/b/c") / Path('b/').name
12.4 µs ± 65.3 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
```

Is 10us significant or insignificant compared to the least expensive operation this function will do? I don't know. Let's find out.

```
In [55]: %timeit os.rename('/tmp/a/a.txt', '/tmp/a/b.txt'); os.rename('/tmp/a/b.txt', '/tmp/a/a.txt')
124 µs ± 2.18 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
```
62us to rename. 10us seems significant enough that we wouldn't want to favor the Path sugar suggestion. 16% speed decrease from adding the 10us.

What do people think? I was hoping to get to use pathlib.Path here, but I suspect for this low level move, it should be as fast as possible, and 16% is not worth one line of sugary code to me.



https://bugs.python.org/issue32689



Automerge-Triggered-By: @gvanrossum
2019-09-30 19:41:16 -07: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-38203: faulthandler.dump_traceback_later() is always available (GH-16249) 2019-09-18 14:15:10 +02:00
encoded_modules
imghdrdata
leakers
libregrtest bpo-38203: faulthandler.dump_traceback_later() is always available (GH-16249) 2019-09-18 14:15:10 +02:00
sndhdrdata
subprocessdata
support bpo-38270: More fixes for strict crypto policy (GH-16418) 2019-09-27 06:03:53 -07:00
test_asyncio bpo-38242: Revert "bpo-36889: Merge asyncio streams (GH-13251)" (#16482) 2019-09-29 21:59:55 -07:00
test_email bpo-37764: Fix infinite loop when parsing unstructured email headers. (GH-15239) 2019-08-31 08:25:35 -07:00
test_import bpo-37409: fix relative import with no parent (#14956) 2019-09-11 11:09:47 +01:00
test_importlib Fix typo in test_api.py. (GH-16119) 2019-09-13 18:27:59 +01:00
test_json bpo-37805: Add tests for json.dump(..., skipkeys=True) (GH-15489) 2019-08-26 00:04:35 -07:00
test_tools bpo-38187: Fix a refleak in Tools/c-analyzer. (gh-16304) 2019-09-27 15:53:34 +01:00
test_warnings Fix typos mostly in comments, docs and test names (GH-15209) 2019-08-30 16:21:19 -04:00
tracedmodules
xmltestdata Add correct license for C14N test suite to license docs. (GH-13055) 2019-05-02 22:11:04 +02:00
ziptestdata bpo-28494: Test existing zipfile working behavior. (GH-15853) 2019-09-10 09:14:11 -07:00
__init__.py
__main__.py
_test_multiprocessing.py bpo-37123: multiprocessing test_mymanager() accepts SIGTERM (GH-16349) 2019-09-24 14:19:48 +02: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 bpo-37320: Remove openfp() of aifc, sunau and wave (GH-14169) 2019-06-18 00:00:24 +02:00
audit-tests.py bpo-37316: mmap.mmap() passes the wrong variable to PySys_Audit() (GH-14152) 2019-06-21 08:31:59 -07:00
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 Change bisect to bisect_cmd in docstring (#13040) 2019-05-01 22:49:49 -04:00
cfgparser.1
cfgparser.2
cfgparser.3
clinic.test bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) 2019-09-14 12:24:05 +03: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-38155: Add __all__ to datetime module (GH-16203) 2019-09-19 14:34:41 +01:00
dis_module.py
doctest_aliases.py
double_const.py
empty.vbs
exception_hierarchy.txt bpo-37757: Disallow PEP 572 cases that expose implementation details (GH-15131) 2019-08-25 23:45:40 +10:00
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-36540: PEP 570 -- Implementation (GH-12701) 2019-04-29 13:36:57 +01:00
inspect_fodder2.py bpo-36540: PEP 570 -- Implementation (GH-12701) 2019-04-29 13:36:57 +01:00
keycert.passwd.pem bpo-38271: encrypt private key test files with AES256 (GH-16385) 2019-09-25 08:55:02 -07: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 bpo-37648: Fixed minor inconsistency in some __contains__. (GH-14904) 2019-08-04 14:12:48 +03:00
lock_tests.py bpo-15999: Clean up of handling boolean arguments. (GH-15610) 2019-09-01 12:16:51 +03:00
mailcap.txt
make_ssl_certs.py bpo-38271: encrypt private key test files with AES256 (GH-16385) 2019-09-25 08:55:02 -07:00
mapping_tests.py bpo-2661: Make mapping tests better usable for custom mapping classes. (GH-11157) 2019-06-06 03:13:08 -07:00
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
pickletester.py Don't skip pickle check_frame_opcodes() (GH-15025) 2019-07-30 12:08:17 -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-38234: Cleanup getpath.c (GH-16367) 2019-09-25 02:54:25 +02:00
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py bpo-36528: Remove duplicate re tests. (GH-2689) 2019-09-11 17:02:34 +01:00
regrtest.py bpo-37473: Don't import importlib ASAP in tests (GH-14661) 2019-07-14 19:31:12 +02:00
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 bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) 2019-05-08 09:35:09 -07:00
seq_tests.py bpo-37648: Fixed minor inconsistency in some __contains__. (GH-14904) 2019-08-04 14:12:48 +03:00
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-38271: encrypt private key test files with AES256 (GH-16385) 2019-09-25 08:55:02 -07: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-36946: Fix possible signed integer overflow when handling slices. (GH-13375) 2019-05-17 10:13:03 +03: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 bpo-36889: Merge asyncio streams (GH-13251) 2019-05-27 12:56:22 -07:00
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-38005: Remove support of string argument in InterpreterID(). (GH-16227) 2019-09-25 18:35:57 +03:00
test_abc.py bpo-34331: Fix incorrectly pluralized abstract class error message. (GH-8670) 2019-09-11 17:29:44 +02:00
test_abstract_numbers.py
test_aifc.py bpo-37320: Remove openfp() of aifc, sunau and wave (GH-14169) 2019-06-18 00:00:24 +02:00
test_argparse.py bpo-8538: Add support for boolean actions to argparse (GH-11478) 2019-09-13 11:17:43 +01:00
test_array.py bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375) 2019-05-17 10:13:03 +03:00
test_asdl_parser.py bpo-35766: Merge typed_ast back into CPython (GH-11645) 2019-01-31 12:40:27 +01:00
test_ast.py bpo-37995: Add an option to ast.dump() to produce a multiline output. (GH-15631) 2019-09-09 19:33:13 +03:00
test_asyncgen.py bpo-30773: Fix ag_running; prohibit running athrow/asend/aclose in parallel (#7468) 2019-09-29 22:59:11 -07:00
test_asynchat.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
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_audit.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
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 Fix stepping into a frame without a __name__ (GH-12064) 2019-03-12 20:57:09 -07:00
test_bigaddrspace.py bpo-37758: Cut always-constant conditionals on sys.maxunicode. (GH-15302) 2019-09-09 08:20:40 -07:00
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-22385: Support output separators in hex methods. (#13578) 2019-05-29 11:46:58 -07:00
test_binhex.py bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 2019-03-05 10:06:26 +02:00
test_binop.py
test_bisect.py
test_bool.py bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 2019-03-05 10:06:26 +02:00
test_buffer.py Unmark files as executable that can't actually be executed. (GH-15353) 2019-08-20 21:53:59 -07:00
test_bufio.py
test_builtin.py bpo-38237: Make pow's arguments have more descriptive names and be keyword passable (GH-16302) 2019-09-20 21:28:49 -07:00
test_bytes.py bpo-37840: Fix handling of negative indices in bytearray_getitem() (GH-15250) 2019-09-09 09:28:34 -07:00
test_bz2.py bpo-37707: Exclude expensive unit tests from PGO task (GH-15009) 2019-07-30 11:08:18 -07:00
test_c_locale_coercion.py bpo-37335, test_c_locale_coercion: Remove unnecessary code (GH-14447) 2019-07-02 12:48:28 +02:00
test_calendar.py Closes bpo-28281: Remove year (1-9999) limits on the weekday() function. (#4109) 2017-10-26 15:34:11 -04:00
test_call.py bpo-37499: Test various C calling conventions (GH-15776) 2019-09-10 04:21:09 -07:00
test_capi.py bpo-38140: Make dict and weakref offsets opaque for C heap types (#16076) 2019-09-19 17:29:05 +01:00
test_cgi.py bpo-20504 : in cgi.py, fix bug when a multipart/form-data request has… (#10638) 2019-09-11 12:05:53 +01: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_check_c_globals.py bpo-36876: Skip test_check_c_globals for now. (gh-16017) 2019-09-12 10:51:00 +01:00
test_class.py bpo-31506: Clarify error messages for object.__new__ and object.__init__ (GH-11641) 2019-02-19 23:23:48 +10:00
test_clinic.py bpo-36876: Add a tool that identifies unsupported global C variables. (#15877) 2019-09-11 19:49:45 +01:00
test_cmath.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_cmd.py bpo-32746: Fix multiple typos (GH-5144) 2018-02-03 19:36:10 -05:00
test_cmd_line.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_cmd_line_script.py Fix typos mostly in comments, docs and test names (GH-15209) 2019-08-30 16:21:19 -04:00
test_code.py bpo-37122: Make co->co_argcount represent the total number of positonal arguments in the code object (GH-13726) 2019-06-01 18:08:04 +01:00
test_code_module.py bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (#4070) 2017-10-27 21:45:19 -04:00
test_codeccallbacks.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02: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 Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00
test_codecmaps_tw.py
test_codecs.py bpo-37876: Tests for ROT-13 codec (GH-15314) 2019-09-09 07:50:36 -07: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 Fix typos mostly in comments, docs and test names (GH-15209) 2019-08-30 16:21:19 -04:00
test_colorsys.py
test_compare.py bpo-37685: Use singletons ALWAYS_EQ and NEVER_EQ in more tests. (GH-15167) 2019-08-08 08:43:18 +03:00
test_compile.py bpo-37500: Make sure dead code does not generate bytecode but also detect syntax errors (GH-14612) 2019-07-15 02:15:01 -07:00
test_compileall.py compileall tests: Use shorter name for long_path test (GH-16419) 2019-09-26 15:16:32 +02:00
test_complex.py bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108) 2019-06-02 00:05:48 +03:00
test_concurrent_futures.py bpo-37421: test_concurrent_futures stops ForkServer (GH-14643) 2019-07-08 10:49:11 +02: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 bpo-37685: Use singletons ALWAYS_EQ and NEVER_EQ in more tests. (GH-15167) 2019-08-08 08:43:18 +03:00
test_context.py bpo-33985: Implement ContextVar.name attribute. (GH-7980) 2018-06-28 13:20:29 -04:00
test_contextlib.py [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620) 2019-06-05 18:22:31 +03:00
test_contextlib_async.py [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620) 2019-06-05 18:22:31 +03:00
test_copy.py
test_copyreg.py
test_coroutines.py bpo-37069: tests use catch_unraisable_exception() (GH-13762) 2019-06-03 03:51:43 +02:00
test_cprofile.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_crashers.py
test_crypt.py bpo-25172: Add test for crypt ImportError on Windows (GH-15252) 2019-08-13 14:27:34 -07:00
test_csv.py bpo-27497: Add return value to csv.DictWriter.writeheader (GH-12306) 2019-05-10 03:50:11 +02: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 Unmark files as executable that can't actually be executed. (GH-15353) 2019-08-20 21:53:59 -07: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-22831: Use "with" to avoid possible fd leaks in tests (part 1). (GH-10928) 2019-03-05 10:05:57 +02: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 bpo-19072: Make @classmethod support chained decorators (GH-8405) 2019-08-24 15:37:25 -07:00
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-37619: update_one_slot() should not ignore wrapper descriptors for wrong type (GH-14836) 2019-09-10 04:21:57 -07:00
test_descrtut.py
test_devpoll.py closes bpo-37252: Fix devpoll tests. (GH-14017) 2019-09-11 14:42:04 +01:00
test_dict.py bpo-36473: add maximum iteration check for dict .values() and .items() (GH-12619) 2019-04-02 18:30:10 +09:00
test_dict_version.py bpo-37685: Use singletons ALWAYS_EQ and NEVER_EQ in more tests. (GH-15167) 2019-08-08 08:43:18 +03:00
test_dictcomps.py bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139) 2019-06-22 07:40:55 -07:00
test_dictviews.py bpo-27575: port set intersection logic into dictview intersection (GH-7696) 2019-08-26 00:17:43 -07:00
test_difflib.py Fix difflib ? hint in diff output when dealing with tabs (#15201) 2019-08-21 13:59:25 -05:00
test_difflib_expect.html
test_dis.py bpo-18578: Rename and document test.bytecode_helper as test.support.bytecode_helper (GH-15168) 2019-09-12 10:02:59 +01:00
test_distutils.py
test_doctest.py Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
test_doctest.txt
test_doctest2.py
test_doctest2.txt
test_doctest3.txt
test_doctest4.txt
test_docxmlrpc.py bpo-38243, xmlrpc.server: Escape the server_title (GH-16373) 2019-09-27 21:59:37 +02:00
test_dtrace.py bpo-32667: Fix tests when $PATH contains a file (#5322) 2018-01-25 19:06:05 +01:00
test_dynamic.py
test_dynamicclassattribute.py
test_eintr.py Fix typos in docs, comments and test assert messages (#14872) 2019-07-21 16:12:33 -04:00
test_embed.py bpo-38317: Fix PyConfig.warnoptions priority (GH-16478) 2019-09-30 01:40:17 +02:00
test_ensurepip.py
test_enum.py bpo-37685: Use singletons ALWAYS_EQ and NEVER_EQ in more tests. (GH-15167) 2019-08-08 08:43:18 +03: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 bpo-2180: Treat line continuation at EOF as a SyntaxError (GH-13401) 2019-05-18 11:27:16 -07:00
test_epoll.py bpo-35934: Add socket.create_server() utility function (GH-11784) 2019-04-09 00:34:02 +02: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-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073) 2019-08-25 12:44:09 +03:00
test_extcall.py bpo-37540: vectorcall: keyword names must be strings (GH-14682) 2019-08-16 03:41:27 -07:00
test_faulthandler.py bpo-38203: faulthandler.dump_traceback_later() is always available (GH-16249) 2019-09-18 14:15:10 +02:00
test_fcntl.py bpo-37964: Make sure test works if TESTFN is in a non-ASCII directory. (GH-15568) 2019-08-28 22:06:49 -07:00
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-36952: Remove the bufsize parameter in fileinput.input(). (GH-13400) 2019-05-20 23:44:11 +03:00
test_fileio.py bpo-36842: Implement PEP 578 (GH-12613) 2019-05-23 08:45:22 -07:00
test_finalization.py
test_float.py bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108) 2019-06-02 00:05:48 +03: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 Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_format.py Fix typos mostly in comments, docs and test names (GH-15209) 2019-08-30 16:21:19 -04:00
test_fractions.py bpo-37819: Add Fraction.as_integer_ratio() (GH-15212) 2019-08-11 14:40:59 -07: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-32912: Revert SyntaxWarning on invalid escape sequences. (GH-15195) 2019-08-10 00:19:07 -07:00
test_ftplib.py bpo-35934: Add socket.create_server() utility function (GH-11784) 2019-04-09 00:34:02 +02:00
test_funcattrs.py bpo-35911: add cell constructor (GH-11771) 2019-02-07 19:36:48 +00:00
test_functools.py [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620) 2019-06-05 18:22:31 +03:00
test_future.py bpo-37070: Cleanup fstring debug handling (GH-13607) 2019-05-29 03:55:44 -04: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 Fix typos mostly in comments, docs and test names (GH-15209) 2019-08-30 16:21:19 -04:00
test_gdb.py bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422) 2019-09-26 16:54:13 +02:00
test_generator_stop.py
test_generators.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_genericclass.py bpo-36679: Rename duplicate test_class_getitem function (GH-12892) 2019-04-22 11:51:06 -07: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-20092. Use __index__ in constructors of int, float and complex. (GH-13108) 2019-06-02 00:05:48 +03:00
test_getopt.py
test_getpass.py
test_gettext.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_glob.py bpo-37935: Added tests for os.walk(), glob.iglob() and Path.glob() (GH-15956) 2019-09-12 13:54:48 +01: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-37830: Fix compilation of break and continue in finally. (GH-15320) 2019-08-24 13:11:52 +03:00
test_grp.py
test_gzip.py bpo-6584: Add a BadGzipFile exception to the gzip module. (GH-13022) 2019-05-13 10:50:52 +03:00
test_hash.py Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00
test_hashlib.py bpo-38270: More fixes for strict crypto policy (GH-16418) 2019-09-27 06:03:53 -07:00
test_heapq.py bpo-19119: Remove invalid test and rename a misnamed test (GH-15442) 2019-08-23 22:31:22 -07:00
test_hmac.py bpo-38270: More fixes for strict crypto policy (GH-16418) 2019-09-27 06:03:53 -07:00
test_html.py
test_htmlparser.py bpo-37328: remove deprecated HTMLParser.unescape (GH-14186) 2019-08-27 11:48:06 +09:00
test_http_cookiejar.py bpo-12144: Handle cookies with expires attribute in CookieJar.make_cookies (GH-13921) 2019-09-13 04:29:00 -07: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-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16448) 2019-09-28 08:32:01 -04:00
test_httpservers.py bpo-35640: Allow passing PathLike arguments to SimpleHTTPRequestHandler (GH-11398) 2019-09-11 14:03:46 +01:00
test_idle.py Improve comments in test_idle.py. (GH-7057) 2018-05-22 13:24:04 -04:00
test_imaplib.py bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382) 2019-09-25 07:30:20 -07:00
test_imghdr.py
test_imp.py bpo-35321: Set the spec origin to frozen in frozen modules (#11732) 2019-02-04 16:56:26 -08:00
test_index.py bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108) 2019-06-02 00:05:48 +03:00
test_inspect.py bpo-37206: Unrepresentable default values no longer represented as None. (GH-13933) 2019-09-14 12:24:05 +03:00
test_int.py bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108) 2019-06-02 00:05:48 +03:00
test_int_literal.py
test_io.py bpo-37388: Development mode check encoding and errors (GH-14341) 2019-06-26 00:51:05 +02:00
test_ioctl.py bpo-15999: Clean up of handling boolean arguments. (GH-15610) 2019-09-01 12:16:51 +03:00
test_ipaddress.py bpo-32820: __format__ method for ipaddress (#5627) 2019-09-12 10:03:31 +01:00
test_isinstance.py
test_iter.py bpo-37648: Fixed minor inconsistency in some __contains__. (GH-14904) 2019-08-04 14:12:48 +03:00
test_iterlen.py
test_itertools.py bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625) 2019-09-09 11:47:14 +03:00
test_keyword.py bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using pgen (GH-12456) 2019-03-25 22:01:12 +00:00
test_keywordonlyarg.py
test_kqueue.py bpo-35934: Add socket.create_server() utility function (GH-11784) 2019-04-09 00:34:02 +02:00
test_largefile.py bpo-37096: Add large-file tests for modules using sendfile(2) (GH-13676) 2019-09-30 12:51:55 +08:00
test_lib2to3.py
test_linecache.py
test_list.py bpo-36946:Fix possible signed integer overflow when handling slices. (GH-15639) 2019-09-08 13:15:56 +03: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 bpo-18378: Recognize "UTF-8" as a valid name in locale._parse_localename (GH-14736) 2019-08-29 00:33:52 -04:00
test_logging.py Updated incorrect level-setting code to use setLevel(). (GH-16325) 2019-09-22 03:51:51 +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-21872: fix lzma library decompresses data incompletely (GH-14048) 2019-09-12 15:20:37 +01:00
test_mailbox.py Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
test_mailcap.py
test_marshal.py Add more tests for preserving identity in marshal. (GH-13736) 2019-06-02 09:03:59 +03:00
test_math.py bpo-37691: Let math.dist() accept sequences and iterables for coordinates (GH-14975) 2019-07-27 14:04:29 -07: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-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522) 2019-09-04 17:34:35 -07:00
test_minidom.py bpo-36407: Fix writing indentations of CDATA section (xml.dom.minidom). (GH-12514) 2019-03-27 07:58:49 +02:00
test_mmap.py bpo-32941: Fix test_madvise failure when page size >= 8kiB (GH-13596) 2019-05-27 10:57:23 -07:00
test_module.py bpo-32225: Implementation of PEP 562 (#4731) 2017-12-14 11:59:44 +01:00
test_modulefinder.py bpo-35936: Updates to modulefinder (GH-11787) 2019-04-07 18:00:41 +10:00
test_msilib.py bpo-37124: Fix reference leak in test_msilib (GH-13750) 2019-06-02 21:36:21 +01:00
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_named_expressions.py bpo-37757: Disallow PEP 572 cases that expose implementation details (GH-15131) 2019-08-25 23:45:40 +10:00
test_netrc.py bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282) 2019-03-12 08:39:57 -07:00
test_nis.py
test_nntplib.py bpo-35925: Skip SSL tests that fail due to weak external certs. (GH-13124) 2019-05-06 17:54:06 -04:00
test_ntpath.py bpo-38081: Fixes ntpath.realpath('NUL') (GH-15899) 2019-09-11 10:48:36 +01: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 bpo-30397: Add re.Pattern and re.Match. (#1646) 2017-10-04 20:09:49 +03:00
test_ordered_dict.py bpo-15999: Clean up of handling boolean arguments. (GH-15610) 2019-09-01 12:16:51 +03:00
test_os.py bpo-37935: Added tests for os.walk(), glob.iglob() and Path.glob() (GH-15956) 2019-09-12 13:54:48 +01: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-37268: test_parser fails when run with -Werror (GH-15183) 2019-08-08 14:48:00 -07:00
test_pathlib.py bpo-37935: Added tests for os.walk(), glob.iglob() and Path.glob() (GH-15956) 2019-09-12 13:54:48 +01:00
test_pdb.py bpo-36250: ignore ValueError from signal in non-main thread (GH-12251) 2019-09-09 05:45:58 -05:00
test_peepholer.py bpo-38115: Deal with invalid bytecode offsets in lnotab (GH-16079) 2019-09-28 07:49:15 -07:00
test_pickle.py bpo-37210: Fix pure Python pickle when _pickle is unavailable (GH-14016) 2019-06-13 13:58:51 +02:00
test_picklebuffer.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_pickletools.py bpo-36785: PEP 574 implementation (GH-7076) 2019-05-26 17:10:09 +02:00
test_pipes.py bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 2019-03-05 10:06:26 +02:00
test_pkg.py bpo-34200: Fix non-determinism of test_pkg (GH-9248) 2018-09-12 17:58:40 -07:00
test_pkgutil.py
test_platform.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_plistlib.py bpo-36409: Remove old plistlib API deprecated in 3.4 (GH-15615) 2019-09-05 10:11:35 +02:00
test_poll.py bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 2019-03-05 10:06:26 +02:00
test_popen.py
test_poplib.py bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382) 2019-09-25 07:30:20 -07:00
test_positional_only_arg.py bpo-37122: Make co->co_argcount represent the total number of positonal arguments in the code object (GH-13726) 2019-06-01 18:08:04 +01:00
test_posix.py closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. (GH-14414) 2019-06-27 09:10:57 -07:00
test_posixpath.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_pow.py bpo-36027: Extend three-argument pow to negative second argument (GH-13266) 2019-06-02 10:24:06 +01:00
test_pprint.py Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
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-19072: Make @classmethod support chained decorators (GH-8405) 2019-08-24 15:37:25 -07: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 bpo-31158: Fix nondeterministic read in test_pty (#3808) 2017-10-02 02:39:55 -07:00
test_pulldom.py bpo-17239: Disable external entities in SAX parser (GH-9217) 2018-09-23 00:50:25 -07:00
test_pwd.py bpo-26856: Skip test_pwd on Android until issue 32033 is fixed (GH-4561) 2017-11-25 17:32:27 +01:00
test_py_compile.py bpo-22640: Add silent mode to py_compile.compile() (GH-12976) 2019-05-28 19:29:04 +03:00
test_pyclbr.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_pydoc.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_pyexpat.py bpo-15999: Always pass bool instead of int to the expat parser. (GH-15622) 2019-09-01 12:11:43 +03:00
test_queue.py bpo-37394: Fix pure Python implementation of the queue module (GH-14351) 2019-06-25 02:53:30 +01:00
test_quopri.py
test_raise.py bpo-37069: tests use catch_unraisable_exception() (GH-13762) 2019-06-03 03:51:43 +02:00
test_random.py bpo-38120: Fix DeprecationWarning in test_random for invalid type of arguments to random.seed. (GH-15987) 2019-09-12 11:13:20 +03:00
test_range.py bpo-37685: Use singletons ALWAYS_EQ and NEVER_EQ in more tests. (GH-15167) 2019-08-08 08:43:18 +03:00
test_re.py bpo-36548: Improve the repr of re flags. (GH-12715) 2019-05-31 10:39:47 +03: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-37531: Skip test_regrtest.test_multiprocessing_timeout() on all platforms (GH-16282) 2019-09-19 16:38:13 +02:00
test_repl.py bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160) 2017-11-12 16:50:48 +01:00
test_reprlib.py
test_resource.py bpo-31904: Port test_resource to VxWorks (GH-12719) 2019-04-17 17:41:33 +02:00
test_richcmp.py
test_rlcompleter.py
test_robotparser.py bpo-37421: urllib.request tests call urlcleanup() (GH-14529) 2019-07-02 14:50:19 +02:00
test_runpy.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_sax.py bpo-37421: urllib.request tests call urlcleanup() (GH-14529) 2019-07-02 14:50:19 +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 bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 2019-03-05 10:06:26 +02:00
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 bpo-37219: Remove erroneous optimization for differencing an empty set (GH-13965) 2019-06-11 01:15:24 -07:00
test_setcomps.py
test_shelve.py bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 2019-03-05 10:06:26 +02:00
test_shlex.py bpo-35168: Make shlex.punctuation_chars read-only (#11631) 2019-09-11 12:04:04 +01:00
test_shutil.py bpo-32689: Updates shutil.move to allow for Path objects to be used as source arg (GH-15326) 2019-09-30 19:41:16 -07:00
test_signal.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_site.py simplify StartupImportTests (GH-13096) 2019-05-05 18:06:30 +09:00
test_slice.py
test_smtpd.py
test_smtplib.py bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382) 2019-09-25 07:30:20 -07:00
test_smtpnet.py
test_sndhdr.py
test_socket.py closes bpo-37405: Make socket.getsockname() always return a tuple for AF_CAN. (GH-14392) 2019-09-12 11:02:48 +01:00
test_socketserver.py bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 2019-03-05 10:06:26 +02:00
test_sort.py bpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209) 2019-03-25 00:25:37 -07:00
test_source_encoding.py bpo-36919: make test_source_encoding.test_issue2301 implementation-independent (#13639) 2019-09-11 14:57:32 +01:00
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-38275: Fix test_ssl issue caused by GH-16386 (#16428) 2019-09-26 18:23:17 +02:00
test_startfile.py bpo-35920: Windows 10 ARM32 platform support (GH-11774) 2019-04-25 18:36:45 +00:00
test_stat.py bpo-36341: Fix tests calling bind() on AF_UNIX sockets (GH-12399) 2019-05-03 08:09:17 -07:00
test_statistics.py bpo-36018: Address more reviewer feedback (GH-15733) 2019-09-08 16:57:58 -07:00
test_strftime.py bpo-32139: test_strftime does not anymore modify the locale (GH-4569) 2017-11-29 11:36:48 +01:00
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-32912: Revert SyntaxWarning on invalid escape sequences. (GH-15195) 2019-08-10 00:19:07 -07:00
test_stringprep.py
test_strptime.py bpo-37552: Skip failing tests in strptime/strftime with UCRT version 17763.615 (#14460) 2019-07-18 15:56:59 +02:00
test_strtod.py
test_struct.py bpo-38076: Make struct module PEP-384 compatible (#15805) 2019-09-10 03:18:37 -07:00
test_structmembers.py
test_structseq.py
test_subclassinit.py
test_subprocess.py bpo-36046: posix_spawn() doesn't support uid/gid (GH-16384) 2019-09-25 15:52:49 +02:00
test_sunau.py bpo-37320: Remove openfp() of aifc, sunau and wave (GH-14169) 2019-06-18 00:00:24 +02:00
test_sundry.py bpo-35920: Windows 10 ARM32 platform support (GH-11774) 2019-04-25 18:36:45 +00: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-32972: Async test case (GH-13386) 2019-05-29 02:33:59 -07:00
test_symbol.py bpo-35683: Improve Azure Pipelines steps (GH-11493) 2019-01-22 10:49:52 -08:00
test_symtable.py bpo-37001: Makes symtable.symtable have parity with compile for input (#13483) 2019-05-28 16:21:17 -07:00
test_syntax.py bpo-37500: Make sure dead code does not generate bytecode but also detect syntax errors (GH-14612) 2019-07-15 02:15:01 -07:00
test_sys.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_sys_setprofile.py bpo-36994: add test for profiling method_descriptor with **kwargs (GH-13461) 2019-05-22 22:05:02 +12:00
test_sys_settrace.py bpo-37500: Make sure dead code does not generate bytecode but also detect syntax errors (GH-14612) 2019-07-15 02:15:01 -07:00
test_sysconfig.py bpo-37369: Fix initialization of sys members when launched via an app container (GH-14428) 2019-06-29 10:34:11 -07:00
test_syslog.py
test_tabnanny.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_tarfile.py bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382) 2019-09-25 07:30:20 -07: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-35803: Document and test dir=PathLike for tempfile (GH-11644) 2019-09-09 10:54:34 -05:00
test_textwrap.py
test_thread.py bpo-37069: tests use catch_unraisable_exception() (GH-13762) 2019-06-03 03:51:43 +02:00
test_threadedtempfile.py Remove unused imports in tests (GH-14518) 2019-07-01 18:28:25 +02:00
test_threading.py Revert "bpo-37788: Fix a reference leak if a thread is not joined (GH-15228)" (GH-15338) 2019-08-20 00:47:07 +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-37552: Skip failing tests in strptime/strftime with UCRT version 17763.615 (#14460) 2019-07-18 15:56:59 +02:00
test_timeit.py
test_timeout.py bpo-15999: Always pass bool instead of int to socket.setblocking(). (GH-15621) 2019-09-01 12:12:52 +03:00
test_tix.py
test_tk.py
test_tokenize.py bpo-35224: PEP 572 Implementation (#10497) 2019-01-24 16:49:56 -07:00
test_trace.py Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
test_traceback.py bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952) 2019-08-08 08:42:54 +03:00
test_tracemalloc.py Fix typos mostly in comments, docs and test names (GH-15209) 2019-08-30 16:21:19 -04:00
test_ttk_guionly.py
test_ttk_textonly.py
test_tuple.py Fix syntax warnings in tests introduced in bpo-15248. (GH-11932) 2019-02-19 13:49:09 +02:00
test_turtle.py Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
test_type_comments.py bpo-35766: compile(): rename feature_version parameter (GH-13994) 2019-06-12 02:52:16 +02:00
test_typechecks.py
test_types.py Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
test_typing.py bpo-38191: Turn warnings into errors in NamedTuple() and TypedDict(). (GH-16238) 2019-09-17 22:41:55 +03:00
test_ucn.py bpo-38043: Move unicodedata.normalize tests into test_unicodedata. (GH-15712) 2019-09-10 10:29:26 +01:00
test_unary.py
test_unicode.py bpo-15999: Clean up of handling boolean arguments. (GH-15610) 2019-09-01 12:16:51 +03:00
test_unicode_file.py Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00
test_unicode_file_functions.py Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00
test_unicode_identifiers.py
test_unicodedata.py closes bpo-37758: Extend unicodedata checksum tests to cover all of Unicode. (GH-15125) 2019-09-12 10:25:25 +01: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-37540: vectorcall: keyword names must be strings (GH-14682) 2019-08-16 03:41:27 -07:00
test_urllib.py bpo-12707: deprecate info(), geturl(), getcode() methods in favor of headers, url, and status properties for HTTPResponse and addinfourl (GH-11447) 2019-09-13 12:40:07 +01:00
test_urllib2.py bpo-25068: urllib.request.ProxyHandler now lowercases the dict keys (GH-13489) 2019-09-13 15:07:07 +01:00
test_urllib2_localnet.py bpo-38270: Check for hash digest algorithms and avoid MD5 (GH-16382) 2019-09-25 07:30:20 -07:00
test_urllib2net.py bpo-37421: urllib.request tests call urlcleanup() (GH-14529) 2019-07-02 14:50:19 +02:00
test_urllib_response.py bpo-12707: deprecate info(), geturl(), getcode() methods in favor of headers, url, and status properties for HTTPResponse and addinfourl (GH-11447) 2019-09-13 12:40:07 +01:00
test_urllibnet.py bpo-37421: urllib.request tests call urlcleanup() (GH-14529) 2019-07-02 14:50:19 +02:00
test_urlparse.py bpo-36742: Corrects fix to handle decomposition in usernames (#13812) 2019-06-04 17:55:29 +02:00
test_userdict.py [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620) 2019-06-05 18:22:31 +03:00
test_userlist.py bpo-27639: Correct return type for UserList slicing operation (#13169) 2019-05-07 17:41:06 -04:00
test_userstring.py bpo-36582: Make collections.UserString.encode() return bytes, not str (GH-13138) 2019-08-27 21:38:09 -07:00
test_utf8_mode.py bpo-36683: Rename duplicate test_io_encoding to test_pyio_encoding (GH-12896) 2019-04-22 11:46:27 -07: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-28009: Fix uuid.uuid1() and uuid.get_node() on AIX (GH-8672) 2019-09-26 22:43:15 +03:00
test_venv.py bpo-37885: venv: Don't produce unbound variable warning on deactivate (GH-15330) 2019-09-11 07:58:56 -07:00
test_wait3.py bpo-36279: Ensure os.wait3() rusage is initialized (GH-15111) 2019-09-09 08:48:32 -07:00
test_wait4.py
test_wave.py bpo-37320: Remove openfp() of aifc, sunau and wave (GH-14169) 2019-06-18 00:00:24 +02:00
test_weakref.py bpo-38006: Avoid closure in weakref.WeakValueDictionary (GH-15641) 2019-09-09 16:55:58 +02:00
test_weakset.py bpo-36949: Implement __repr__ on WeakSet (GH-13415) 2019-05-20 10:01:07 -07:00
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-37421: test_winconsoleio doesn't leak temp file anymore (GH-14562) 2019-07-03 11:09:56 +02:00
test_winreg.py bpo-32587: Make winreg.REG_MULTI_SZ support zero-length strings (#13239) 2019-09-09 02:26:15 -07:00
test_winsound.py
test_with.py bpo-32670: Enforce PEP 479. (#5327) 2018-01-26 15:24:24 -05:00
test_wsgiref.py Fix typos mostly in comments, docs and test names (GH-15209) 2019-08-30 16:21:19 -04:00
test_xdrlib.py
test_xml_dom_minicompat.py
test_xml_etree.py bpo-32424: Deprecate xml.etree.ElementTree.Element.copy() in favor of copy.copy() (GH-12995) 2019-09-10 16:22:01 +01: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-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952) 2019-08-08 08:42:54 +03:00
test_xmlrpc_net.py bpo-31724: Skip test_xmlrpc_net (GH-3921) 2017-10-08 01:31:23 -05:00
test_xxtestfuzz.py bpo-29505: Add more fuzzing for re.compile, re.load and csv.reader (GH-14255) 2019-06-29 22:54:42 -07:00
test_yield_from.py bpo-37069: tests use catch_unraisable_exception() (GH-13762) 2019-06-03 03:51:43 +02:00
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-36991: Fix incorrect exception escaping ZipFile.extract() (GH-13632) 2019-09-12 15:13:44 +01:00
test_zipfile64.py bpo-22831: Use "with" to avoid possible fd leaks in tests (part 1). (GH-10928) 2019-03-05 10:05:57 +02:00
test_zipimport.py bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 2019-03-05 10:06:26 +02:00
test_zipimport_support.py bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 2019-03-05 10:06:26 +02:00
test_zlib.py bpo-36048: Use __index__() instead of __int__() for implicit conversion if available. (GH-11952) 2019-02-25 17:57:58 +02:00
testcodec.py
testtar.tar
tf_inherit_check.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