forked from pool/python-Twisted
- Update to 20.3.0
* drop Python 2
* twisted.news is deprecated.
* twisted.conch.ssh now supports the curve25519-sha256 key exchange
algorithm (requires OpenSSL >= 1.1.0).
* many bugfixes and other miscelaneous fixes
- Fixed update-alternatives mechanism
- Added true-binary.patch
- Dropped python-38-xml-namespace.patch
- Reapplied python-38-hmac-digestmod.patch
OBS-URL: https://build.opensuse.org/request/show/810151
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=91
23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
Index: Twisted-20.3.0/src/twisted/conch/test/test_ckeygen.py
|
|
===================================================================
|
|
--- Twisted-20.3.0.orig/src/twisted/conch/test/test_ckeygen.py
|
|
+++ Twisted-20.3.0/src/twisted/conch/test/test_ckeygen.py
|
|
@@ -66,7 +66,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:
|
|
@@ -100,7 +100,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])
|
|
|
|
|
|
|