forked from pool/python-trustme
Matej Cepl
8729bbe2c0
Add fix2038.patch to allow tests of python-aiosmtplib to pass after 2038 OBS-URL: https://build.opensuse.org/request/show/1058352 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trustme?expand=0&rev=17
18 lines
670 B
Diff
18 lines
670 B
Diff
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
|
Date: 2023-01-14
|
|
Subject: Fix tests of python-aiosmtplib after 2038
|
|
|
|
diff --git a/trustme/__init__.py b/trustme/__init__.py
|
|
index cc280b0..f24e100 100644
|
|
--- a/trustme/__init__.py
|
|
+++ b/trustme/__init__.py
|
|
@@ -50,7 +50,7 @@ _KEY_SIZE = 2048
|
|
# Some versions of cryptography on 32-bit platforms fail if you give
|
|
# them dates after ~2038-01-19:
|
|
# https://github.com/pyca/cryptography/pull/4658
|
|
-DEFAULT_EXPIRY = datetime.datetime(2038, 1, 1)
|
|
+DEFAULT_EXPIRY = datetime.datetime(2098, 1, 1)
|
|
|
|
def _name(name, organization_name=None, common_name=None):
|
|
# type: (Text, Optional[Text], Optional[Text]) -> x509.Name
|