Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Python 3.12 compatilibity #817
* Update unittest asserts to support Python 3.12+ Related to python/cpython#89325 * Update green.http.client for changes in Python 3.12 Related to python/cpython@f0b234e Co-Authored-By: Victor Stinner <vstinner@python.org> * Set green.thred.daemon_threads_allowed for Python 3.12+ support Related to python/cpython@4702552 * Python 3.12+ only: Adjust for removal of ssl.wrap_socket() Related to python/cpython@00464bb * Python 3.12 fixes by hroncok This PR attempts to add compatibility for older Python versions. We draw the line at Python versions that predate ssl.SSLContext, though. The remaining Python 2.7 documentation doesn't even mention the version at which that was introduced. * Allow access to global __ssl within class definition. * Remember whether original ssl module has wrap_socket() function. * Replace a few assertTrue() calls with assert statements. * In GreenSSLSocket.__new__(), use cls, not self. * Add 3.12 * Add newer versions * Warnings don't mean the test should fail * Fix syntax error * Style fixes * Simplify given we only support 3.8+ * Document 3.12 support --------- Co-authored-by: Miro Hrončok <miro@hroncok.cz> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Itamar Turner-Trauring <itamar@itamarst.org> Co-authored-by: Itamar Turner-Trauring <itamar@pythonspeed.com>
- Loading branch information
1 parent
d78f8f6
commit e51f72a
Showing
10 changed files
with
186 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.