cpython/Lib
Victor Stinner 35d2ca2b94 [3.6] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2441)
* bpo-30523: regrtest --list-cases --match (#2401)

* regrtest --list-cases now supports --match and --match-file options.
  Example: ./python -m test --list-cases -m FileTests test_os
* --list-cases now also sets support.verbose to False to prevent
  messages to stdout when loading test modules.
* Add support._match_test() private function.
(cherry picked from commit ace56d5836)

* bpo-30764: regrtest: add --fail-env-changed option (#2402)

* bpo-30764: regrtest: change exit code on failure

* Exit code 2 if failed tests ("bad")
* Exit code 3 if interrupted

* bpo-30764: regrtest: add --fail-env-changed option

If the option is set, mark a test as failed if it alters the
environment, for example if it creates a file without removing it.

(cherry picked from commit 63f54c6893)

* bpo-30776: reduce regrtest -R false positives (#2422)

* Change the regrtest --huntrleaks checker to decide if a test file
  leaks or not. Require that each run leaks at least 1 reference.
* Warmup runs are now completely ignored: ignored in the checker test
  and not used anymore to compute the sum.
* Add an unit test for a reference leak.

Example of reference differences previously considered a failure
(leak) and now considered as success (success, no leak):

    [3, 0, 0]
    [0, 1, 0]
    [8, -8, 1]
(cherry picked from commit 48b5c422ff)
2017-06-27 16:04:15 +02:00
..
asyncio [3.6] Fix a typo in a comment in coroutines.py (GH-2267) (GH-2370) 2017-06-23 22:44:57 -07:00
collections merge 2016-12-31 12:02:42 -07:00
concurrent Issue #27895: Spelling fixes (Contributed by Ville Skyttä). 2016-09-07 12:03:06 +00:00
ctypes [3.6] Use Travis to make sure all generated files are up to date (GH-2080) (GH-2092) 2017-06-11 11:30:57 -05:00
curses Issue #13051: Fixed recursion errors in large or resized curses.textpad.Textbox. 2016-12-28 10:16:06 +02:00
dbm Issue #28847: dbm.dumb now supports reading read-only files and no longer 2016-12-07 11:00:06 +02:00
distutils bpo-30273: update distutils.sysconfig for venv's created from Python (#1515) (#1625) 2017-05-16 17:58:02 -07:00
email [email] bpo-29478: Fix passing max_line_length=None from Compat32 policy (GH-595) (GH-2233) 2017-06-16 07:18:58 -07:00
encodings Revert #27959: ImportError within an encoding module should also skip the encoding 2016-09-09 08:56:37 -07:00
ensurepip Merge - upgrade pip/setuptools 2016-11-15 21:18:40 -05:00
html #27364: fix "incorrect" uses of escape character in the stdlib. 2016-09-08 13:59:53 -04:00
http Issue #22493: Inline flags now should be used only at the start of the 2016-09-11 12:50:02 +03:00
idlelib [3.6] bpo-30674: IDLE: add docstrings to grep.py (GH-2213) (#2434) 2017-06-27 03:01:58 -04:00
importlib bpo-29862: Fix grammar in importlib.reload() exception (GH-809) (GH-811) 2017-03-25 03:41:59 -07:00
json Fixed the documentation of parse_constant argument in json.load(). 2016-11-12 22:48:33 +02:00
lib2to3 bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a 'trailer', e.g. zip()[x] (GH-24) (GH-2235) 2017-06-15 19:56:52 -07:00
logging bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses (#1676) (#1903) 2017-06-01 22:20:27 +08:00
msilib #27364: fix "incorrect" uses of escape character in the stdlib. 2016-09-08 13:59:53 -04:00
multiprocessing [3.6] bpo-24484: Avoid race condition in multiprocessing cleanup (GH-2159) (#2166) 2017-06-13 17:51:26 +02:00
pydoc_data Update pydoc topics for v3.6.2rc1 2017-06-17 04:37:19 -04:00
site-packages Issue #29283: Delete accidentally added Lib/site-packages/README 2017-01-30 13:55:49 +03:00
sqlite3 bpo-28518: Start a transaction implicitly before a DML statement (#245) (#318) 2017-02-26 19:09:10 +03:00
test [3.6] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2441) 2017-06-27 16:04:15 +02:00
tkinter Fix spelling mistakes in tkinter.py (#1751) 2017-05-23 09:14:02 +03:00
turtledemo
unittest bpo-23890: Fix ref cycle in TestCase.assertRaises (#858) 2017-06-16 00:18:15 +02:00
urllib bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2289) 2017-06-20 15:37:24 +02:00
venv [3.6] bpo-27425: Be more explicit in .gitattributes (GH-840) (GH-2083) 2017-06-10 15:39:29 -05:00
wsgiref
xml bpo-30264: ExpatParser closes the source on error (#1451) (#1474) 2017-05-05 10:04:57 +02:00
xmlrpc bpo-29615: backport to 3.6 (#478) 2017-03-05 18:14:06 +02:00
__future__.py
__phello__.foo.py
_bootlocale.py
_collections_abc.py bpo-26915: Test identity first in index() and count() of collections.abc.Sequence (GH-553) 2017-03-08 11:43:35 +08:00
_compat_pickle.py Issue #15767: Add ModuleNotFoundError. 2016-09-07 15:42:32 -07:00
_compression.py
_dummy_thread.py
_markupbase.py
_osx_support.py Fix misplaced positional argument in OS X support library (#1137) 2017-04-14 17:44:34 +03:00
_pydecimal.py Issue #27348: Merge exception formatting fix from 3.5 into 3.6 2016-09-22 10:33:21 +00:00
_pyio.py Merge from 3.5. 2016-12-07 13:31:47 +02:00
_sitebuiltins.py
_strptime.py
_threading_local.py
_weakrefset.py
abc.py bpo-29581: bpo-29581: Make ABCMeta.__new__ pass **kwargs to type.__new__ (GH-527) (GH-1282) 2017-06-06 17:31:03 -07:00
aifc.py [3.6] bpo-29110: Fix file object leak in aifc.open (#310) 2017-02-27 04:09:32 +09:00
antigravity.py Issue #28181: Get antigravity over HTTPS. Patch by Kaartic Sivaraam. 2016-09-16 13:48:10 +02:00
argparse.py Issue #29290: Merge 3.5. 2017-01-22 14:39:20 +08:00
ast.py
asynchat.py Issue #25002: Back out asyncore/asynchat deprecation. 2016-10-25 18:42:51 -07:00
asyncore.py Issue #25002: Back out asyncore/asynchat deprecation. 2016-10-25 18:42:51 -07:00
base64.py Add Python version since deprecation in base64 methods. (#33) (#429) 2017-03-03 18:07:18 +03:00
bdb.py
binhex.py
bisect.py
bz2.py Issue #28225: bz2 module now supports pathlib 2016-10-02 20:07:06 +03:00
calendar.py Issue #28255: calendar.TextCalendar().prmonth() no longer prints a space 2016-10-25 15:02:36 +03:00
cgi.py
cgitb.py
chunk.py
cmd.py
code.py
codecs.py
codeop.py
colorsys.py
compileall.py Issue #28485: Merge single-threading fix from 3.5 into 3.6 2016-11-05 01:35:25 +00:00
configparser.py [3.6] bpo-29623: Make PathLike objects work with ConfigParser.read() (#242) (#432) 2017-03-03 20:48:37 +03:00
contextlib.py bpo-30266: support "= None" pattern in AbstractContextManager (GH-1448) (GH-2054) 2017-06-09 20:36:28 -07:00
copy.py
copyreg.py
cProfile.py
crypt.py
csv.py Issue #18219: Optimize csv.DictWriter for large number of columns. 2016-10-21 19:47:57 +09:00
datetime.py Issue #24773: fix datetime.time constructor docstring 2017-01-04 12:01:16 +01:00
decimal.py
difflib.py #27364: fix "incorrect" uses of escape character in the stdlib. 2016-09-08 13:59:53 -04:00
dis.py Issue #28317: The disassembler now decodes FORMAT_VALUE argument. 2016-10-08 12:34:25 +03:00
doctest.py #27364: fix "incorrect" uses of escape character in the stdlib. 2016-09-08 13:59:53 -04:00
dummy_threading.py
enum.py [3.6] bpo-30616: Functional API of enum allows to create empty enums. (#2304) (#2324) 2017-06-24 09:12:20 -07:00
filecmp.py
fileinput.py
fnmatch.py Issue #22493: Inline flags now should be used only at the start of the 2016-09-11 12:50:02 +03:00
formatter.py
fractions.py
ftplib.py Issue #28022: Deprecate ssl-related arguments in favor of SSLContext. 2016-09-10 23:23:33 +02:00
functools.py Sync-up with 3.7 by backporting minor lru_cache code beautification 2017-01-08 18:22:24 -08:00
genericpath.py
getopt.py
getpass.py getpass: update docstrings (GH-49) (GH-419) 2017-03-02 21:56:06 -08:00
gettext.py [3.6] bpo-29755: Fixed the lgettext() family of functions in the gettext module. (GH-2266) (#2297) 2017-06-20 18:06:35 +03:00
glob.py Issue #27998: Removed workarounds for supporting bytes paths on Windows in 2016-10-05 23:17:10 +03:00
gzip.py Issue #28227: gzip now supports pathlib 2016-10-02 13:47:58 +03:00
hashlib.py Issue #16113: Add SHA-3 and SHAKE support to hashlib module. 2016-09-07 11:58:24 +02:00
heapq.py
hmac.py Use sequence repetition instead of bytes constructor with integer argument. 2016-09-11 14:41:02 +03:00
imaplib.py bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1620) 2017-05-16 15:29:41 -07:00
imghdr.py Issue #28228: imghdr now supports pathlib 2016-10-01 05:01:54 +03:00
imp.py [3.6] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) (#2364) 2017-06-23 11:23:36 -07:00
inspect.py bpo-30149: Fix partialmethod without explicit self parameter (#1308) (#1662) 2017-06-15 17:41:57 +03:00
io.py
ipaddress.py [3.6] bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (GH-879) (#2217) 2017-06-15 17:16:38 +03:00
keyword.py
linecache.py
locale.py
lzma.py Issue #28229: lzma module now supports pathlib 2016-10-04 20:41:20 +03:00
macpath.py
macurl2path.py
mailbox.py Issue #28764: Fix a test_mailbox failure on Android API 24 when run as a non-root user. 2016-12-12 09:55:57 +01:00
mailcap.py #14977: Make mailcap respect the order of the lines in the mailcap file. 2016-09-09 20:04:23 -04:00
mimetypes.py
modulefinder.py
netrc.py
nntplib.py
ntpath.py Issue #27355: Removed support for Windows CE. It was never finished, 2016-09-05 15:11:23 -07:00
nturl2path.py
numbers.py
opcode.py Issue #28257: Improved error message when pass a non-iterable as 2016-10-02 10:33:46 +03:00
operator.py
optparse.py
os.py Fixes empty tuple case. 2016-11-19 21:14:27 -08:00
pathlib.py bpo-30177: pathlib: include the full path in resolve(strict=False) (#1893) (#1985) 2017-06-07 10:18:56 -07:00
pdb.py Issue #20766: Merge with 3.5. 2016-10-12 20:16:05 +02:00
pickle.py
pickletools.py Use sequence repetition instead of bytes constructor with integer argument. 2016-09-11 14:41:02 +03:00
pipes.py
pkgutil.py Issue #17211: Yield a namedtuple in pkgutil. 2016-09-07 18:37:17 -07:00
platform.py [3.6] bpo-27593: Get SCM build info from git instead of hg. (#446) (#454) 2017-03-04 01:05:06 -05:00
plistlib.py Issue #28321: Fixed writing non-BMP characters with binary format in plistlib. 2016-10-04 20:08:29 +03:00
poplib.py bpo-30329: Catch Windows error 10022 on shutdown() (#1538) (#1620) 2017-05-16 15:29:41 -07:00
posixpath.py
pprint.py
profile.py
pstats.py bpo-29554: Improve docs for pstat module and profile. (#88) (#227) 2017-02-22 04:55:33 +03:00
pty.py
py_compile.py
pyclbr.py
pydoc.py Issue #15767: Use ModuleNotFoundError. 2016-09-07 16:56:15 -07:00
queue.py
quopri.py
random.py Issue #29055: Suppress upstream exception for random.choice() 2016-12-27 01:06:52 -08:00
re.py Issue #28637: Reapply changeset 223731925d06 2016-11-14 12:35:55 +01:00
reprlib.py
rlcompleter.py
runpy.py [backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder". 2016-09-07 00:52:20 -07:00
sched.py Issue #5830: Remove old comment. Add empty slots. 2016-10-24 07:31:55 -07:00
secrets.py Issue #29061: secrets.randbelow() would hang with a negative input 2016-12-29 22:54:25 -07:00
selectors.py Issue #27759: Fix selectors incorrectly retain invalid file descriptors. 2016-10-06 14:03:03 -04:00
shelve.py
shlex.py Fixed #29132: Updated shlex to work better with punctuation chars in POSIX mode. 2017-01-15 10:06:52 +00:00
shutil.py Issue #14061: Misc fixes and cleanups in archiving code in shutil. 2016-12-16 19:00:55 +02:00
signal.py
site.py Issue #28637: No longer use re in site.py. 2016-11-08 20:17:35 +02:00
smtpd.py
smtplib.py bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700) (#1790) 2017-05-25 02:59:06 +08:00
sndhdr.py
socket.py Issue #26384: Merge from 3.5 2016-09-17 23:23:13 +03:00
socketserver.py
sre_compile.py Issue #433028: Added support of modifier spans in regular expressions. 2016-09-10 00:57:55 +03:00
sre_constants.py [3.6] bpo-30398: Add a docstring for re.error. (GH-1647) (#1830) 2017-05-27 16:37:40 +03:00
sre_parse.py [3.6] bpo-30605: Fix compiling binary regexs with BytesWarnings enabled. (GH-2016) (#2214) 2017-06-15 16:55:22 +03:00
ssl.py Issue #28085: Add PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER for SSLContext 2016-09-12 00:01:11 +02:00
stat.py
statistics.py Issue #27181 remove geometric_mean and defer for 3.7. 2016-10-05 03:24:45 +11:00
string.py #27364: fix "incorrect" uses of escape character in the stdlib. 2016-09-08 13:59:53 -04:00
stringprep.py
struct.py
subprocess.py [3.6] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2360) 2017-06-23 20:17:38 +03:00
sunau.py
symbol.py Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations. 2016-09-08 20:50:03 -07:00
symtable.py Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations. 2016-09-08 20:50:03 -07:00
sysconfig.py Issue #28046: get_sysconfigdata_name() uses the _PYTHON_SYSCONFIGDATA_NAME 2016-09-11 22:22:24 +02:00
tabnanny.py fix function name in tabnanny documentation (GH-762) 2017-03-22 15:26:53 +08:00
tarfile.py Issue #26937: The chown() method of the tarfile.TarFile class does not fail now 2016-12-09 09:33:09 +01:00
telnetlib.py
tempfile.py
textwrap.py Issue #20491: The textwrap.TextWrapper class now honors non-breaking spaces. 2016-10-25 14:44:54 +03:00
this.py
threading.py bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-330) 2017-02-27 11:45:42 +08:00
timeit.py bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331) (GH-353) 2017-02-28 11:28:44 +08:00
token.py
tokenize.py Issue #26331: Implement the parsing part of PEP 515. 2016-09-09 14:57:09 -07:00
trace.py
traceback.py Issue #27348: Merge exception formatting fix from 3.5 into 3.6 2016-09-22 10:33:21 +00:00
tracemalloc.py
tty.py
turtle.py Correct spelling in documentation and code comment 2016-09-10 10:38:28 +00:00
types.py Issue #28003: Implement PEP 525 -- Asynchronous Generators. 2016-09-08 22:01:51 -07:00
typing.py bpo-28556: Updates to typing module (GH-2076) (GH-2087) 2017-06-10 14:41:00 -07:00
uu.py
uuid.py
warnings.py Issue #28835: Tidy previous showwarning changes based on review comments. 2016-12-06 17:12:47 -05:00
wave.py
weakref.py Fix #29519: weakref spewing exceptions during interp finalization 2017-02-10 00:14:55 -08:00
webbrowser.py Issue #23262: The webbrowser module now supports Firefox 36+ and derived 2016-10-30 19:16:33 +02:00
xdrlib.py
zipapp.py
zipfile.py [3.6] Revert bpo-26293 for zipfile breakage. See also bpo-29094. (GH-1484). (#1485) 2017-05-06 15:10:50 +03:00