File: 002.fixed-import-module.patch

package info (click to toggle)
endesive 2.19.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,416 kB
  • sloc: python: 18,312; xml: 800; sh: 186; javascript: 118; makefile: 22
file content (48 lines) | stat: -rw-r--r-- 1,255 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Description: Fixed bug import module and buggy skip functions
Author: Josenilson Ferreira da Silva <nilsonfsilva@hotmai.com>
Forwarded: not-needed
Last-Update: 2023-11-02
--- a/tests/test_email.py
+++ b/tests/test_email.py
@@ -15,7 +15,7 @@
 import hashlib
 from asn1crypto import cms, algos, core, pem
 
-import test_cert
+from . import test_cert
 
 tests_root = os.path.dirname(__file__)
 fixtures_dir = os.path.join(tests_root, 'fixtures')
--- a/tests/test_hsm.py
+++ b/tests/test_hsm.py
@@ -21,7 +21,7 @@
 from endesive import hsm, signer, verifier
 import PyKCS11 as PK11
 
-import test_cert
+from . import test_cert
 
 tests_root = os.path.dirname(__file__)
 fixtures_dir = os.path.join(tests_root, 'fixtures')
--- a/tests/test_pdf.py
+++ b/tests/test_pdf.py
@@ -12,7 +12,7 @@
 fixtures_dir = os.path.join(tests_root, 'fixtures')
 
 
-import test_cert
+from . import test_cert
 
 def fixture(fname):
     return os.path.join(fixtures_dir, fname)
--- a/tests/test_plain.py
+++ b/tests/test_plain.py
@@ -10,7 +10,7 @@
 from cryptography.hazmat.primitives.serialization import pkcs12
 from endesive import plain
 
-import test_cert
+from . import test_cert
 
 tests_root = os.path.dirname(__file__)
 fixtures_dir = os.path.join(tests_root, 'fixtures')