1. 27 Mar, 2016 4 commits
    • Martin Panter's avatar
      cbd2e195
    • Raymond Hettinger's avatar
    • Martin Panter's avatar
    • Martin Panter's avatar
      Issue #25940: Use internal local server more in test_ssl · cef76066
      Martin Panter authored
      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().
      cef76066
  2. 26 Mar, 2016 4 commits
  3. 25 Mar, 2016 26 commits
  4. 24 Mar, 2016 6 commits
    • Victor Stinner's avatar
      pystate.h: fix _PyThreadState_UncheckedGet() · c1f6b6e5
      Victor Stinner authored
      Declare the function even if thread support is disabled.
      c1f6b6e5
    • Victor Stinner's avatar
      Fix bug in __import__ during Python shutdown · 8e26b337
      Victor Stinner authored
      Issue #26637: The importlib module now emits an ImportError rather than a
      TypeError if __import__() is tried during the Python shutdown process but
      sys.path is already cleared (set to None).
      8e26b337
    • Victor Stinner's avatar
      Merge 3.5 · 09f7cc8c
      Victor Stinner authored
      Issue #21925: warnings.formatwarning() now catches exceptions when calling
      linecache.getline() and tracemalloc.get_object_traceback() to be able to log
      ResourceWarning emitted late during the Python shutdown process.
      09f7cc8c
    • Victor Stinner's avatar
      warnings.formatwarning(): catch exceptions · 75915381
      Victor Stinner authored
      Issue #21925: warnings.formatwarning() now catches exceptions on
      linecache.getline(...) to be able to log ResourceWarning emitted late during
      the Python shutdown process.
      75915381
    • Victor Stinner's avatar
      Fix test_warnings.test_improper_option() · 6af5fa30
      Victor Stinner authored
      test_warnings: only run test_improper_option() and test_warnings_bootstrap()
      once. The unit test doesn't depend on self.module.
      6af5fa30
    • Victor Stinner's avatar
      Cleanup regrtest "main()" function · f799b2c9
      Victor Stinner authored
      * Rename libregrtest.main_in_temp_cwd() to libregrtest.main()
      * Add regrtest.main_in_temp_cwd() alias to libregrtest.main()
      * Move old main_in_temp_cwd() code into libregrtest.Regrtest.main()
      * Update multiple scripts to call libregrtest.main()
      f799b2c9