]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12440: When testing whether some bits in SSLContext.options can be
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 8 Jul 2011 16:49:07 +0000 (18:49 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 8 Jul 2011 16:49:07 +0000 (18:49 +0200)
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.

1  2 
Lib/ssl.py
Lib/test/test_ssl.py
Misc/NEWS
Modules/_ssl.c

diff --cc Lib/ssl.py
index 1a7f599ea86cfd66499036afa6579b5499d1cd27,ce9ebdf30ae6fa9e51ff8331890dedbd49f8fadf..cde99fc0831a4a69c23a6c89afa9ccf643d2371e
@@@ -76,8 -76,9 +76,10 @@@ from _ssl import 
      SSL_ERROR_INVALID_ERROR_CODE,
      )
  from _ssl import HAS_SNI
 -from _ssl import PROTOCOL_SSLv3, PROTOCOL_SSLv23, PROTOCOL_TLSv1
 +from _ssl import (PROTOCOL_SSLv3, PROTOCOL_SSLv23,
 +                  PROTOCOL_TLSv1)
+ from _ssl import _OPENSSL_API_VERSION
  _PROTOCOL_NAMES = {
      PROTOCOL_TLSv1: "TLSv1",
      PROTOCOL_SSLv23: "SSLv23",
Simple merge
diff --cc Misc/NEWS
index cd0eab6a5091753890c9e9ad3ebfd4b6b1e4deda,018d79923438b8526588803db65adc7dabe300f5..13b14b07d850338ad6263cb15de729ce20a2415e
+++ b/Misc/NEWS
@@@ -1004,58 -670,6 +1004,62 @@@ Extension Module
  Tests
  -----
  
++- Issue #12440: When testing whether some bits in SSLContext.options can be
++  reset, check the version of the OpenSSL headers Python was compiled against,
++  rather than the runtime version of the OpenSSL library.
++
 +- Issue #11512: Add a test suite for the cgitb module. Patch by Robbie Clemons.
 +
 +- Issue #12497: Install test/data to prevent failures of the various codecmaps
 +  tests.
 +
 +- Issue #12496: Install test/capath directory to prevent test_connect_capath
 +  testcase failure in test_ssl.
 +
 +- Issue #12469: Run wakeup and pending signal tests in a subprocess to run the
 +  test in a fresh process with only one thread and to not change signal
 +  handling of the parent process.
 +
 +- Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
 +  test_tk or test_ttk_guionly under a username that is not currently logged
 +  in to the console windowserver (as may be the case under buildbot or ssh).
 +
 +- Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
 +
 +- Issue #12400: regrtest -W doesn't rerun the tests twice anymore, but captures
 +  the output and displays it on failure instead. regrtest -v doesn't print the
 +  error twice anymore if there is only one error.
 +
 +- Issue #12141: Install copies of template C module file so that
 +  test_build_ext of test_distutils and test_command_build_ext of
 +  test_packaging are no longer silently skipped when
 +  run outside of a build directory.
 +
 +- Issue #8746: Add additional tests for os.chflags() and os.lchflags().
 +  Patch by Garrett Cooper.
 +
 +- Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
 +  2.8 +  on Mac OS X.  (Patch by Ronald Oussoren)
 +
 +- Issue #12057: Add tests for ISO 2022 codecs (iso2022_jp, iso2022_jp_2,
 +  iso2022_kr).
 +
 +- Issue #12180: Fixed a few remaining errors in test_packaging when no
 +  threading.
 +
 +- Issue #12120, #12119: skip a test in packaging and distutils
 +  if sys.dont_write_bytecode is set to True.
 +
 +- Issue #12096: Fix a race condition in test_threading.test_waitfor(). Patch
 +  written by Charles-François Natali.
 +
 +- Issue #11614: import __hello__ prints "Hello World!". Patch written by
 +  Andreas Stührk.
 +
 +- Issue #5723: Improve json tests to be executed with and without accelerations.
 +
 +- Issue #12041: Make test_wait3 more robust.
 +
  - Issue #11873: Change regex in test_compileall to fix occasional failures when
    when the randomly generated temporary path happened to match the regex.
  
diff --cc Modules/_ssl.c
Simple merge