cpython/Lib
Martin Panter 3840b2ac67 Issue #25940: Use internal local server more in test_ssl
Move many tests from NetworkedTests and NetworkedBIOTests to a new Simple-
BackgroundTests class, using the existing ThreadedEchoServer and SIGNED_
CERTFILE infrastructure.

For tests that cause the server to crash by rejecting its certificate,
separate them into independent test methods.

Added custom root certificate to capath with the following commands:

cp Lib/test/{pycacert.pem,capath/}
# Edit copy to remove part before certificate
c_rehash -v Lib/test/capath/
c_rehash -v -old Lib/test/capath/
# Note the generated file names
cp Lib/test/capath/{pycacert.pem,b1930218.0}
mv Lib/test/capath/{pycacert.pem,ceff1710.0}

Change to pure PEM version of SIGNING_CA because PEM_cert_to_DER_cert() does
not like the extra text at the start.

Moved test_connect_ex_error() into BasicSocketTests and rewrote it to connect
to a reserved localhost port.

NetworkedTests.test_get_server_certificate_ipv6() split out because it needs
to connect to an IPv6 DNS address.

The only reference left to self-signed.pythontest.net is test_timeout_
connect_ex(), which needs a remote server to reliably time out the
connection, but does not rely on the server running SSL.

Made ThreadedEchoServer call unwrap() by default when it sees the client has
shut the connection down, so that the client can cleanly call unwrap().
2016-03-27 01:53:46 +00:00
..
asyncio Add a source parameter to warnings.warn() 2016-03-23 00:28:08 +01:00
collections Fix out-of-date comment 2016-02-25 00:25:45 -08:00
concurrent Issue #25523: Further a-to-an corrections new in 3.5 2015-11-02 04:20:33 +00:00
ctypes Issue #21042: Revert Linux find_library() to return just filename 2016-03-17 07:50:22 +00:00
curses
dbm Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
distutils Issue #25136: merge from 3.5 2016-02-25 00:59:16 +11:00
email Issues #26310, #26311: Fix typos in the documentation and code comments 2016-02-10 01:17:51 +00:00
encodings Add some "used with permission" mentions where external resources are referenced. 2016-01-15 09:53:51 -08:00
ensurepip Upgrade ensurepip._bundled pip to 8.1.1 and setuptools to 20.3 2016-03-17 11:00:08 -04:00
html Merge spelling fixes from 3.4 into 3.5 2015-10-31 12:16:18 +00:00
http Issue #26499: Fixes to HTTPResponse.readline() and read1(), by Silent Ghost 2016-03-17 06:42:48 +00:00
idlelib Issue #26581: Use the first coding cookie on a line, not the last one. 2016-03-20 23:47:48 +02:00
importlib Fix bug in __import__ during Python shutdown 2016-03-25 00:40:59 +01:00
json Issue #24540: merger from 3.4 2015-07-05 11:45:31 -07:00
lib2to3 Issue #26581: Use the first coding cookie on a line, not the last one. 2016-03-20 23:47:48 +02:00
logging merge with 3.5 2016-02-25 20:18:00 +01:00
msilib Issue #16620: Got rid of using undocumented function glob.glob1(). 2016-01-19 14:09:33 +02:00
multiprocessing Issue #25654: 2016-03-25 09:29:50 +01:00
plat-aix4
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic
plat-linux
plat-netbsd1
plat-next3
plat-sunos5
plat-unixware7
pydoc_data Rebuild pydoc topics for Python 3.4.4 final. 2015-12-19 19:28:52 -08:00
site-packages Merge with 3.5. 2015-10-06 18:52:52 +03:00
sqlite3 Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). 2015-05-22 11:13:20 +03:00
test Issue #25940: Use internal local server more in test_ssl 2016-03-27 01:53:46 +00:00
tkinter Merge with 3.5 2016-03-11 15:31:02 -05:00
turtledemo issue19075: add visual sorting algorithms to turtledemo; original code from Jason Yeo 2015-03-02 12:29:58 -08:00
unittest #25320: Handle sockets in directories unittest discovery is scanning. 2016-03-15 13:33:28 +13:00
urllib Issue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls 2016-03-06 16:17:47 +02:00
venv Fixes #26348: Merged fix from 3.5. 2016-02-13 16:27:25 +00:00
wsgiref Issue #26560: Avoid potential ValueError in BaseHandler.start_response 2016-03-19 09:04:59 +02:00
xml Issue #25902: Fixed various refcount issues in ElementTree iteration. 2015-12-21 11:11:12 +02:00
xmlrpc Issue #26402: Merge XML-RPC client fix from 3.5 2016-02-25 12:13:50 +00:00
__future__.py PEP 479: Change StopIteration handling inside generators. 2015-05-09 11:44:30 -04:00
__phello__.foo.py
_bootlocale.py
_collections_abc.py Issue #24400: Resurrect inspect.isawaitable() 2015-07-03 13:11:35 -04:00
_compat_pickle.py Issue #26013: Added compatibility with broken protocol 2 pickles created 2016-01-18 21:35:22 +02:00
_compression.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
_dummy_thread.py Issue 21137: Better repr for threading.Lock() 2014-05-25 18:22:35 -07:00
_markupbase.py
_osx_support.py Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite. 2014-06-25 13:36:14 -07:00
_pydecimal.py Issue #26621: Update libmpdec version and remove unnecessary test case. 2016-03-23 20:50:10 +01:00
_pyio.py Add a source parameter to warnings.warn() 2016-03-23 00:28:08 +01:00
_sitebuiltins.py #9364: Improve the text printed by help(pydoc) and help(help). 2014-04-19 12:59:30 -04:00
_strptime.py Issue #23718: Fixed parsing time in week 0 before Jan 1. Original patch by 2016-03-12 10:53:09 +02:00
_threading_local.py
_weakrefset.py
abc.py Issue #22032: __qualname__ instead of __name__ is now always used to format 2014-07-22 15:00:37 +03:00
aifc.py Issue #24878: Fix typos and line wrap 2015-08-23 11:28:01 -07:00
antigravity.py
argparse.py Issue #17940: Remove redundant code from _Section.format_help() 2016-03-05 14:05:45 +02:00
ast.py Add ast.Constant 2016-01-26 00:40:57 +01:00
asynchat.py (Merge 3.4) Issue #16133: The asynchat.async_chat.handle_read() method now 2014-07-24 19:00:28 +02:00
asyncore.py Add a source parameter to warnings.warn() 2016-03-23 00:28:08 +01:00
base64.py Issue #25913: Leading <~ is optional now in base64.a85decode() with adobe=True. 2016-02-24 12:08:11 +02:00
bdb.py
binhex.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
bisect.py
bz2.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
calendar.py Issue #23883: Add missing APIs to calendar.__all__ 2016-01-16 06:49:30 +00:00
cgi.py (Merge 3.4) cgi.FieldStorage.read_multi ignores Content-Length 2015-08-18 10:23:16 -07:00
cgitb.py Issue #22831: Use "with" to avoid possible fd leaks. 2015-04-04 11:01:02 +03:00
chunk.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
cmd.py
code.py Remaining fallout from 17911 2015-03-05 15:45:01 +13:00
codecs.py Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 2015-11-02 04:04:57 +00:00
codeop.py
colorsys.py
compileall.py Issue #25768: Make compileall functions return booleans and document 2015-12-27 13:17:04 -08:00
configparser.py Issue #21159: Improve message in configparser.InterpolationMissingOptionError. 2015-08-14 11:47:41 +12:00
contextlib.py Issue #24336: The contextmanager decorator now works with functions with 2015-06-28 17:08:35 +03:00
copy.py Issue #26167: Minimized overhead in copy.copy() and copy.deepcopy(). 2016-03-06 14:56:57 +02:00
copyreg.py
cProfile.py
crypt.py Issue #25287: Don't add crypt.METHOD_CRYPT to crypt.methods if it's not 2015-10-02 23:00:39 +02:00
csv.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
datetime.py Closes #19475: Added timespec to the datetime.isoformat() method. 2016-03-06 14:58:43 -05:00
decimal.py Issue #23641: Cleaned out legacy dunder names from tests and docs. 2015-03-12 21:56:08 +02:00
difflib.py Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 2015-11-02 04:04:57 +00:00
dis.py co_lnotab supports negative line number delta 2016-01-20 12:16:21 +01:00
doctest.py doctest: fix _module_relative_path() error message 2016-03-25 12:50:36 +01:00
dummy_threading.py
enum.py revert change 87a9dff5106c: pure Enum members again evaluate to True; 2016-01-15 15:01:33 -08:00
filecmp.py shallow defaults to 'True' not '1' (closes #21355) 2014-04-26 13:36:21 -04:00
fileinput.py Issue #15068: Avoid creating a reference loop in fileinput. 2016-03-08 23:36:25 +02:00
fnmatch.py
formatter.py Issue #25407: Drop the mention of the formatter module being removed 2015-10-16 12:09:33 -07:00
fractions.py Issue #25971: Optimized creating Fractions from floats by 2 times and from 2015-12-29 22:34:23 +02:00
ftplib.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
functools.py Removed redundant call of update_wrapper(). 2015-10-24 09:51:53 +03:00
genericpath.py Issue #21883: os.path.join() and os.path.relpath() now raise a TypeError with 2014-10-04 14:58:43 +03:00
getopt.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
getpass.py remove duplicated imports (closes #25502) 2015-10-28 23:15:13 -07:00
gettext.py Merge from 3.4 2015-04-14 10:35:43 -04:00
glob.py Issue #25584: Added "escape" to the __all__ list in the glob module. 2015-11-09 23:18:19 +02:00
gzip.py Issue #22341: Drop Python 2 workaround and document CRC initial value 2015-12-11 05:19:29 +00:00
hashlib.py Removed duplicated words in in comments and docs. 2014-12-01 18:28:43 +02:00
heapq.py Issue #22186: Fix typos in Lib/. 2014-10-19 18:07:05 +03:00
hmac.py
imaplib.py #21815: violate IMAP RFC to be compatible with, e.g., gmail 2016-01-02 17:18:34 -05:00
imghdr.py #20295: Teach imghdr to recognize OpenEXR format images. 2014-06-26 12:27:57 -04:00
imp.py Upgrade the imp module's deprecation to DeprecationWarning. 2015-10-16 12:21:37 -07:00
inspect.py Merge 3.5 (issue #26347) 2016-03-02 11:08:05 -05:00
io.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
ipaddress.py Issue #26457: Fixed the subnets() methods in IP network classes for the case 2016-03-01 10:25:45 +02:00
keyword.py
linecache.py Issue #23838: linecache now clears the cache and returns an empty result on 2015-04-01 16:56:13 +03:00
locale.py locale.delocalize(): only call localeconv() once 2015-11-03 14:34:51 +01:00
lzma.py Issue #23529: Limit the size of decompressed data when reading from 2015-04-11 00:31:01 +02:00
macpath.py Issue #23780: Improved error message in os.path.join() with single argument. 2015-05-19 11:00:07 +03:00
macurl2path.py
mailbox.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:29:28 +03:00
mailcap.py
mimetypes.py Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls 2015-03-10 13:17:21 -07:00
modulefinder.py Issue #25487: Fix tests not updated when the imp module moved to a 2015-10-30 14:41:06 -07:00
netrc.py
nntplib.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
ntpath.py Issue #23780: Improved error message in os.path.join() with single argument. 2015-05-19 11:00:07 +03:00
nturl2path.py Issue21160: Correct comments in nturl2path. Patch by Jurko Gospodnetić. 2015-10-24 17:39:36 +03:00
numbers.py Issue #21408: The default __ne__() now returns NotImplemented if __eq__() 2015-01-26 09:57:07 +02:00
opcode.py Issue 25483: Add an opcode to make f-string formatting more robust. 2015-11-03 12:45:05 -05:00
operator.py Issue #24379: Revert the operator.subscript patch (dccc4e63aef5) pending resolution of the related refcnt leak. 2015-11-02 00:39:56 -05:00
optparse.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
os.py Enhance os._DummyDirEntry 2016-03-24 12:23:18 +01:00
pathlib.py Issue #20589: Invoking Path.owner() and Path.group() on Windows now raise 2016-03-11 23:07:27 +02:00
pdb.py merge from 3.4 2015-09-05 19:17:24 -04:00
pickle.py Issue #25761: Improved detecting errors in broken pickle data. 2015-12-06 22:01:35 +02:00
pickletools.py merge 3.5 (#25502) 2015-10-28 23:15:22 -07:00
pipes.py
pkgutil.py Upgrade the imp module's deprecation to DeprecationWarning. 2015-10-16 12:21:37 -07:00
platform.py Issue #26513: Fixes platform module detection of Windows Server 2016-03-12 08:06:23 -08:00
plistlib.py Issue #21888: plistlib's load() and loads() now work if the fmt parameter is 2014-07-23 18:49:31 +03:00
poplib.py #21804: Add RFC 6856 (UTF8) support to poplib. 2015-05-16 15:05:53 -04:00
posixpath.py Issue #23780: Improved error message in os.path.join() with single argument. 2015-05-19 11:00:07 +03:00
pprint.py Issue #18682: Optimized pprint functions for builtin scalar types. 2015-05-16 21:38:05 +03:00
profile.py
pstats.py
pty.py
py_compile.py Issue #23911: Move path-based bootstrap code to a separate frozen module. 2015-05-02 19:15:18 -06:00
pyclbr.py Fix pyclbr to support importing packages 2016-03-17 09:06:41 +01:00
pydoc.py Issue #25985: sys.version_info is now used instead of sys.version 2016-02-11 13:10:36 +02:00
queue.py Issue #22043: time.monotonic() is now always available 2014-09-02 23:18:25 +02:00
quopri.py Issue #23681: Fixed Python 2 to 3 poring bugs. 2015-03-20 16:46:19 +02:00
random.py merge 2014-05-25 17:28:38 -07:00
re.py Issue #22364: Improved some re error messages using regex for hints. 2015-03-25 21:03:47 +02:00
reprlib.py Issue #22824: Simplify reprlib output format for empty arrays 2014-11-15 10:58:58 -08:00
rlcompleter.py Merge 3.5 2016-02-04 14:08:23 -05:00
runpy.py Issue #19771: Omit irrelevant message if package could not be initialized 2015-12-12 06:58:55 +00:00
sched.py Issue #24878: Add docstrings to selected namedtuples 2015-08-17 22:04:45 -07:00
selectors.py Sync selectors.py with upstream asyncio 2016-03-02 10:43:45 -05:00
shelve.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
shlex.py Issue #24113: Remove unreachable code in shlex. 2015-05-04 22:45:47 -04:00
shutil.py Issue #24982: shutil.make_archive() with the "zip" format now adds entries 2015-09-08 05:53:42 +03:00
signal.py Issue #25523: Further a-to-an corrections new in 3.5 2015-11-02 04:20:33 +00:00
site.py Issue #25985: sys.version_info is now used instead of sys.version 2016-02-11 13:10:36 +02:00
smtpd.py #25328: add missing raise keyword in decode_data+SMTPUTF8 check. 2015-10-09 10:19:33 -04:00
smtplib.py #25446: Fix regression in smtplib's AUTH LOGIN support. 2015-11-08 01:03:52 -05:00
sndhdr.py Issue #24878: Add docstrings to selected namedtuples 2015-08-17 22:04:45 -07:00
socket.py Issue #16915: Clarify that mode parameter of socket.makefile() does not accept 2016-02-18 17:34:00 +02:00
socketserver.py Issue #5824: Merge socketserver tests from 3.5 2016-02-24 06:14:15 +00:00
sre_compile.py Issue #24426: Fast searching optimization in regular expressions now works 2015-06-21 14:06:55 +03:00
sre_constants.py Issue #22831: Use "with" to avoid possible fd leaks. 2015-04-04 11:01:02 +03:00
sre_parse.py Issue #26475: Fixed debugging output for regular expressions with the (?x) flag. 2016-03-06 09:15:47 +02:00
ssl.py Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji. 2016-03-17 15:02:39 -07:00
stat.py Issue #21741: Add st_file_attributes to os.stat_result on Windows. 2014-06-19 09:46:37 -05:00
statistics.py Issue #25177: Fixed problem with the mean of very small and very large numbers. 2015-12-01 19:59:53 +11:00
string.py Issue #25034: Merge from 3.5. 2015-09-29 10:30:47 -04:00
stringprep.py
struct.py
subprocess.py subprocess._optim_args_from_interpreter_flags() 2016-01-18 12:15:08 +01:00
sunau.py Corrected docstrings of audio modules. writeframes() accepts bytes, not str. 2015-07-10 22:13:40 +03:00
symbol.py Issue 24297: Update symbol.py. See also issue 24017. 2015-05-27 11:08:19 -04:00
symtable.py remove the concept of an unoptimized function scope from the compiler, since it can't happen anymore 2015-04-27 21:44:22 -04:00
sysconfig.py Issue #25985: sys.version_info is now used instead of sys.version 2016-02-11 13:10:36 +02:00
tabnanny.py
tarfile.py Issue #22468: Merge gettarinfo() doc from 3.5 2016-02-19 23:46:59 +00:00
telnetlib.py #25485: Add context manager support to Telnet class. 2015-11-28 12:24:52 -05:00
tempfile.py Add a source parameter to warnings.warn() 2016-03-23 00:28:08 +01:00
textwrap.py Issue #21827: Fixed textwrap.dedent() for the case when largest common 2015-10-28 21:43:12 +02:00
this.py
threading.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
timeit.py Merge with 3.5. 2015-10-06 18:52:52 +03:00
token.py PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
tokenize.py Issue #26581: Use the first coding cookie on a line, not the last one. 2016-03-20 23:47:48 +02:00
trace.py Issue22642 - Convert trace module's option handling mechanism from getopt to argparse. 2016-01-13 07:46:54 -08:00
traceback.py Issue #25111: Fixed comparison of traceback.FrameSummary. 2015-09-29 22:34:16 +03:00
tracemalloc.py tracemalloc now supports domains 2016-03-22 12:58:23 +01:00
tty.py
turtle.py Issue #6639: Module-level turtle functions no longer raise TclError after 2015-02-22 17:25:33 +02:00
types.py Issue #24400: Resurrect inspect.isawaitable() 2015-07-03 13:11:35 -04:00
typing.py Add Awaitable, AsyncIterable, AsyncIterator to typing.py. 2015-12-03 17:31:24 -08:00
uu.py
uuid.py Issue #19164: Improve exception message of uuid.UUID() 2016-03-20 16:49:10 +02:00
warnings.py Merge 3.5 2016-03-25 00:33:12 +01:00
wave.py Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej 2015-11-14 12:46:42 +00:00
weakref.py Issue #22958: Constructor and update method of weakref.WeakValueDictionary 2015-09-29 23:52:42 +03:00
webbrowser.py Issue #25005: Backout fix for #8232 because of use of unsafe subprocess.call(shell=True) 2015-09-05 11:57:47 -07:00
xdrlib.py Issue #11694: Raise ConversionError in xdrlib as documented 2014-10-10 21:21:52 +03:00
zipapp.py #23657 Don't explicitly do an isinstance check for str in zipapp 2015-03-22 15:32:36 +00:00
zipfile.py Issue #26039: Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir(). 2016-02-08 00:02:25 +02:00