Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / signify / certificate-expiration-date.patch
blob6554211a4bc71e638eae25b9b54693e37c0259d9
1 diff --git a/tests/test_authenticode.py b/tests/test_authenticode.py
2 index 7e2c709..2f27e09 100644
3 --- a/tests/test_authenticode.py
4 +++ b/tests/test_authenticode.py
5 @@ -153,10 +153,12 @@ class AuthenticodeParserTestCase(unittest.TestCase):
6 """this certificate is revoked"""
7 with open(str(root_dir / "test_data" / "jameslth"), "rb") as f:
8 pefile = SignedPEFile(f)
9 - pefile.verify()
10 + pefile.verify(verification_context_kwargs=
11 + {'timestamp': datetime.datetime(2021, 1, 1, tzinfo=datetime.timezone.utc)})
13 def test_jameslth_revoked(self):
14 """this certificate is revoked"""
15 + # TODO: this certificate is now expired, so it will not show up as valid anyway
16 with open(str(root_dir / "test_data" / "jameslth"), "rb") as f:
17 pefile = SignedPEFile(f)
18 with self.assertRaises(VerificationError):