We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4992ad + 5c7aadf commit 428c31cCopy full SHA for 428c31c
tests/util_test.py
@@ -3,6 +3,7 @@
3
import functools
4
import sys
5
import unittest
6
+import warnings
7
8
import pytest
9
import test_util
@@ -22,7 +23,13 @@ def setUp(self) -> None:
22
23
self.cert_other = test_util.load_comparable_cert("cert-san.pem")
24
25
def test_getattr_proxy(self) -> None:
- assert self.cert1.has_expired() is True
26
+ with warnings.catch_warnings():
27
+ warnings.filterwarnings(
28
+ "ignore",
29
+ category=DeprecationWarning,
30
+ message=".*Use timezone-aware objects to represent datetimes",
31
+ )
32
+ assert self.cert1.has_expired() is True
33
34
def test_eq(self) -> None:
35
assert self.req1 == self.req2
0 commit comments