Skip to content

Commit fcd8098

Browse files
authored
Merge pull request #101 from diabonas/test_x509-add-tzinfo
test_x509: add tzinfo to not_before and not_after datetimes
2 parents 3639994 + d693ce7 commit fcd8098

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
aenum; python_version < "3.6"
2-
asn1crypto
2+
asn1crypto>=1.0.0
33
cached-property

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# This file is autogenerated by pip-compile
33
# To update, run:
44
#
5-
# pip-compile --output-file requirements.txt requirements.in
5+
# pip-compile --output-file=requirements.txt requirements.in
66
#
77
aenum==2.0.7 ; python_version < "3.6"
8-
asn1crypto==0.22.0
9-
cached-property==1.3.0
8+
asn1crypto==1.4.0
9+
cached-property==1.5.2

tests/test_x509.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ def test_self_sign_certificate(self):
184184
},
185185
'validity': {
186186
'not_before': Time({
187-
'utc_time': datetime.datetime(2017, 1, 1, 0, 0),
187+
'utc_time': datetime.datetime(2017, 1, 1, 0, 0, tzinfo=datetime.timezone.utc),
188188
}),
189189
'not_after': Time({
190-
'utc_time': datetime.datetime(2038, 12, 31, 23, 59),
190+
'utc_time': datetime.datetime(2038, 12, 31, 23, 59, tzinfo=datetime.timezone.utc),
191191
}),
192192
},
193193
'subject_public_key_info': {

0 commit comments

Comments
 (0)