Skip to content

Commit a81306e

Browse files
authored
Remove simplefilter calls that aren't necessary (#1230)
1 parent a7043ab commit a81306e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/test_ssl.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
)
3333
from sys import getfilesystemencoding, platform
3434
from typing import Union
35-
from warnings import simplefilter
3635
from weakref import ref
3736

3837
from cryptography import x509
@@ -3121,7 +3120,6 @@ def test_text(self):
31213120
"""
31223121
server, client = loopback()
31233122
with pytest.warns(DeprecationWarning) as w:
3124-
simplefilter("always")
31253123
count = server.send(b"xy".decode("ascii"))
31263124
assert "{0} for buf is no longer accepted, use bytes".format(
31273125
WARNING_TYPE_EXPECTED
@@ -3329,7 +3327,6 @@ def test_text(self):
33293327
"""
33303328
server, client = loopback()
33313329
with pytest.warns(DeprecationWarning) as w:
3332-
simplefilter("always")
33333330
server.sendall(b"x".decode("ascii"))
33343331
assert "{0} for buf is no longer accepted, use bytes".format(
33353332
WARNING_TYPE_EXPECTED

0 commit comments

Comments
 (0)