File: 0001-Skip-tests-that-fail-because-of-an-expired-certifica.patch

package info (click to toggle)
python-a38 0.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 460 kB
  • sloc: python: 3,677; xml: 162; makefile: 78; sh: 11
file content (32 lines) | stat: -rw-r--r-- 926 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
From: Elena Grandi <elena@truelite.it>
Date: Fri, 30 Jul 2021 12:00:27 +0200
Subject: Skip tests that will fail because of an expired certificate.
Forwarded: not-needed

---
 tests/test_p7m.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/test_p7m.py b/tests/test_p7m.py
index 3ed65c9..f9b601f 100644
--- a/tests/test_p7m.py
+++ b/tests/test_p7m.py
@@ -1,7 +1,7 @@
 import os
 import tempfile
 from contextlib import contextmanager
-from unittest import TestCase
+from unittest import TestCase, skip
 
 from a38.crypto import P7M, InvalidSignatureError
 
@@ -60,6 +60,9 @@ jkJbJNWfBsgjRHGg6Pq3enAf8/7DfkoCyKUzI8zZ
 CA_CERT_HASH = "b72ed47c.0"
 
 
+# The following tests are failing because of an expired certificate, and
+# a certificate with no expiration wouldn't work in this context.
+@skip("certificate expired")
 class TestSignature(TestCase):
     @contextmanager
     def capath(self):