cpython/Lib
Victor Stinner caa59c156d [3.6] bpo-30106: Fix test_asyncore.test_quick_connect() (#1336)
* Fix/optimize test_asyncore.test_quick_connect() (#1188)

Don't use addCleanup() in test_quick_connect() because it keeps the
Thread object alive and so @reap_threads fails on its timeout of 1
second. "./python -m test -v test_asyncore -m test_quick_connect"
now takes 185 ms, instead of 11 seconds.

Other minor changes:

* Use "with sock:" to close the socket instead of
  try/finally: sock.close()
* Use self.skipTest() in test_quick_connect() to remove one
  indentation level and notice user that the test is specific to
  AF_INET and AF_INET6

* bpo-30106: Fix tearDown() of test_asyncore (#1194)

Call asyncore.close_all() with ignore_all=True in the tearDown()
method of the test_asyncore base test case. It should prevent keeping
alive sockets in asyncore.socket_map if close() fails with an
unexpected error.

Revert also an unwanted change of my previous commit: remove name
parameter of Thread in test_quick_connect().

* bpo-30106: Fix test_asyncore.test_quick_connect() (#1234)

test_quick_connect() runs a thread up to 50 seconds, whereas the
socket is connected in 0.2 second and then the thread is expected to
end in less than 3 second. On Linux, the thread ends quickly because
select() seems to always return quickly. On FreeBSD, sometimes
select() fails with timeout and so the thread runs much longer than
expected.

Fix the thread timeout to fix a race condition in the test.
2017-04-28 04:13:37 +02:00
..
asyncio bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future (GH-1170) (#1247) 2017-04-21 19:58:28 -07:00
collections merge 2016-12-31 12:02:42 -07:00
concurrent
ctypes bpo-29845: Mark tests that use _testcapi as CPython-only (#711) (#725) 2017-03-19 20:53:42 +02: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 Merge spelling and grammar from 3.5 2016-12-18 05:37:21 +00:00
email
encodings
ensurepip Merge - upgrade pip/setuptools 2016-11-15 21:18:40 -05:00
html
http
idlelib import sys before we use it on line 9 (GH-828) (GH-833) 2017-03-26 19:53:37 -07: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 [3.6] bpo-29869: Allow underscores in numeric literals in lib2to3. (GH-1119) (GH-1122) 2017-04-13 16:54:49 -07:00
logging bpo-29808: Do not fail in SysLogHandler constructor if syslog isn't available. (#696) 2017-03-17 19:52:56 +00:00
msilib
multiprocessing [3.6] bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (GH-1110) (#1186) 2017-04-19 23:59:02 +03:00
pydoc_data Update pydoc topics for 3.6.0rc1 2017-03-04 12:18:43 -05: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-30106: Fix test_asyncore.test_quick_connect() (#1336) 2017-04-28 04:13:37 +02:00
tkinter Issue 28923: Remove editor artifacts from Tix.py, 2016-12-22 00:02:36 -05:00
turtledemo
unittest bpo-30078: Add an example of passing a path to unittest (GH-1178) 2017-04-20 07:36:57 +03:00
urllib [3.6] Remove superfluous comment in urllib.error. (GH-1076) (GH-1101) 2017-04-12 20:45:54 -07:00
venv Fixes #29213: merged fix from 3.5. 2017-02-02 19:26:48 +00:00
wsgiref
xml
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
_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
aifc.py [3.6] bpo-29110: Fix file object leak in aifc.open (#310) 2017-02-27 04:09:32 +09:00
antigravity.py
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 [3.6] bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError (GH-949) (#1105) 2017-04-13 02:50:21 -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
dis.py Issue #28317: The disassembler now decodes FORMAT_VALUE argument. 2016-10-08 12:34:25 +03:00
doctest.py
dummy_threading.py
enum.py closes issue29167: fix race condition in (Int)Flag 2017-01-24 12:12:06 -08:00
filecmp.py
fileinput.py
fnmatch.py
formatter.py
fractions.py
ftplib.py
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 Issue #28563: Make plural form selection more lenient and accepting 2016-11-14 19:29:59 +02: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
heapq.py
hmac.py
imaplib.py Merge: #25591: improve imap tests. 2016-12-24 21:34:05 -05:00
imghdr.py Issue #28228: imghdr now supports pathlib 2016-10-01 05:01:54 +03:00
imp.py
inspect.py bpo-26985: Add missing info of code object in inspect documentation (GH-1090) (GH-1099) 2017-04-13 11:14:17 +08:00
io.py
ipaddress.py
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
mimetypes.py
modulefinder.py
netrc.py
nntplib.py
ntpath.py
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 [3.6] bpo-29694: race condition in pathlib mkdir with flags parents=True (GH-1089). (GH-1126) 2017-04-13 19:26:16 -07:00
pdb.py Issue #20766: Merge with 3.5. 2016-10-12 20:16:05 +02:00
pickle.py
pickletools.py
pipes.py
pkgutil.py
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
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
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
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
sndhdr.py
socket.py Issue #26384: Merge from 3.5 2016-09-17 23:23:13 +03:00
socketserver.py
sre_compile.py
sre_constants.py
sre_parse.py Issue #27030: Unknown escapes in re.sub() replacement template are allowed 2016-12-06 19:15:29 +02:00
ssl.py
stat.py
statistics.py Issue #27181 remove geometric_mean and defer for 3.7. 2016-10-05 03:24:45 +11:00
string.py
stringprep.py
struct.py
subprocess.py [3.6] bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). (GH-1110) (#1186) 2017-04-19 23:59:02 +03:00
sunau.py
symbol.py
symtable.py
sysconfig.py
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
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
types.py
typing.py [3.6] bpo-28556: Update to typing: treat subscripted generics as proxies (GH-265) (GH-268) 2017-02-24 16:40:50 -08: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 bpo-30017: Allowed calling the close() method of the zip entry writer object (#1041) (#1092) 2017-04-16 12:04:45 +03:00