diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-01 09:25:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-01 09:25:36 +0100 |
commit | 9b9c22874161d13ca8d50c952d549f2390f3f179 (patch) | |
tree | 008ed76c56f51f6f3c30370c7b6109476f3dd4e4 /dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch | |
parent | 51f111b675c30c05f05128be7836616634098bae (diff) |
gentoo auto-resync : 01:06:2023 - 09:25:35
Diffstat (limited to 'dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch')
-rw-r--r-- | dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch b/dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch new file mode 100644 index 000000000000..6e49a784af16 --- /dev/null +++ b/dev-python/pycryptodome/files/pycryptodome-3.18.0-python3.12-unittest.patch @@ -0,0 +1,22 @@ +https://github.com/Legrandin/pycryptodome/pull/746 + +From 9d70fbca927516b31ef61fd7cc3ed3e0ebc95fa6 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Thu, 1 Jun 2023 08:03:18 +0100 +Subject: [PATCH] Replace deprecated unittest aliases for Python 3.12 + +See https://docs.python.org/3.12/whatsnew/3.12.html#removed. +--- a/lib/Crypto/SelfTest/PublicKey/test_import_ECC.py ++++ b/lib/Crypto/SelfTest/PublicKey/test_import_ECC.py +@@ -2269,9 +2269,9 @@ def test_import_x509_pem(self): + def test_import_openssh_public(self): + key_file = load_file("ecc_ed25519_public_openssh.txt") + key = ECC._import_openssh_public(key_file) +- self.failIf(key.has_private()) ++ self.assertFalse(key.has_private()) + key = ECC.import_key(key_file) +- self.failIf(key.has_private()) ++ self.assertFalse(key.has_private()) + + def test_import_openssh_private_clear(self): + key_file = load_file("ecc_ed25519_private_openssh.pem") |