forked from pool/python-Twisted
- Python 3.10 beta is now a supported platform and should be ready for
the final 3.10 release.
- twisted.web.template.renderElement() now accepts any IRequest
implementer instead of only twisted.web.server.Request. Add type
hints to twisted.web.template. (#10184)
- Type hinting was added to twisted.internet.defer, making this the
first release of Twisted where you might reasonably be able to use
mypy without your own custom stub files. (#10017)
- Patch incremental-21.patch removed, because included in the
upstream tarball.
- The enableSessions argument to
twisted.internet.ssl.CertificateOptions now
- actually enables/disables OpenSSL's session cache. Also, due to
- session-related bugs, it defaults to False. (#9583)
- twisted.internet.defer.inlineCallbacks and ensureDeferred will now
associate a contextvars.Context with the coroutines they run,
meaning that ContextVar objects will maintain their value within
the same coroutine, similarly to asyncio Tasks. This functionality
requires Python 3.7+, or the contextvars PyPI backport to be
installed for Python 3.5-3.6. (#9719, #9826)
- twisted.internet.defer.Deferred.fromCoroutine has been added. This
is similar to the existing ensureDeferred function, but is named
more consistently inside Twisted and does not pass through
Deferreds. (#9825)
- trial now allows the @unittest.skipIf decorator to specify that an
entire test class should be skipped. (#9829)
- The twisted.python.deprecate.deprecatedKeywordParameter decorator
can be used to mark a keyword paramater of a function or method as
deprecated. (#9844)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=107
25 lines
1.0 KiB
Diff
25 lines
1.0 KiB
Diff
---
|
|
src/twisted/conch/test/test_ckeygen.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/src/twisted/conch/test/test_ckeygen.py
|
|
+++ b/src/twisted/conch/test/test_ckeygen.py
|
|
@@ -73,7 +73,7 @@ class KeyGenTests(TestCase):
|
|
|
|
def _testrun(self, keyType, keySize=None, privateKeySubtype=None):
|
|
filename = self.mktemp()
|
|
- args = ["ckeygen", "-t", keyType, "-f", filename, "--no-passphrase"]
|
|
+ args = ["ckeygen-" + sys.version[:3], "-t", keyType, "-f", filename, "--no-passphrase"]
|
|
if keySize is not None:
|
|
args.extend(["-b", keySize])
|
|
if privateKeySubtype is not None:
|
|
@@ -107,7 +107,7 @@ class KeyGenTests(TestCase):
|
|
def test_runBadKeytype(self):
|
|
filename = self.mktemp()
|
|
with self.assertRaises(subprocess.CalledProcessError):
|
|
- subprocess.check_call(["ckeygen", "-t", "foo", "-f", filename])
|
|
+ subprocess.check_call(["ckeygen-" + sys.version[:3], "-t", "foo", "-f", filename])
|
|
|
|
def test_enumrepresentation(self):
|
|
"""
|