| 1 |
From: YOKOTA Hiroshi <[email protected]> |
| 2 |
Date: Mon, 11 Jul 2022 21:33:53 +0900 |
| 3 |
Subject: "py7zr" uses PyCryptodome |
| 4 |
|
| 5 |
Forwarded: not-needed |
| 6 |
|
| 7 |
This test checks the Cryptodome class was replaced old Crypto class. |
| 8 |
py7zr requires Cryptodome's extended features like AES. |
| 9 |
--- |
| 10 |
src/calibre/test_build.py | 2 +- |
| 11 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 |
|
| 13 |
diff --git a/src/calibre/test_build.py b/src/calibre/test_build.py |
| 14 |
index 7813f82..5f53df4 100644 |
| 15 |
--- a/src/calibre/test_build.py |
| 16 |
+++ b/src/calibre/test_build.py |
| 17 |
@@ -43,7 +43,7 @@ class BuildTest(unittest.TestCase): |
| 18 |
self.assertTrue(False, f'Failed to load DLL {x} with error: {err}') |
| 19 |
|
| 20 |
def test_pycryptodome(self): |
| 21 |
- from Crypto.Cipher import AES |
| 22 |
+ from Cryptodome.Cipher import AES |
| 23 |
|
| 24 |
del AES |
| 25 |
|