summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-03-27 01:53:46 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-03-27 01:53:46 (GMT)
commit3840b2ac6728d1940a7efc2ecab2c7d9a100c080 (patch)
tree1668168a3ce85009150e2b1de3183f3127367a1a /Misc
parent2c257ab0f85396664536605666af9a6f00c73a4f (diff)
downloadcpython-3840b2ac6728d1940a7efc2ecab2c7d9a100c080.zip
cpython-3840b2ac6728d1940a7efc2ecab2c7d9a100c080.tar.gz
cpython-3840b2ac6728d1940a7efc2ecab2c7d9a100c080.tar.bz2
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().
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS2
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index ca36123..83dee73 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -873,7 +873,7 @@ Tests
- Issue #26325: Added test.support.check_no_resource_warning() to check that
no ResourceWarning is emitted.
-- Issue #25940: Changed test_ssl to use self-signed.pythontest.net. This
+- Issue #25940: Changed test_ssl to use its internal local server more. This
avoids relying on svn.python.org, which recently changed root certificate.
- Issue #25616: Tests for OrderedDict are extracted from test_collections