Skip to content

Commit 21a99c8

Browse files
committed
reinstate warning filters
1 parent c6a5a7f commit 21a99c8

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

pyproject.toml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -103,32 +103,32 @@ log_cli_level = "INFO"
103103
faulthandler_timeout = 1500
104104
asyncio_default_fixture_loop_scope = "session"
105105
xfail_strict = true
106-
# filterwarnings = [
107-
# "error",
108-
# # Internal warnings raised during tests.
109-
# "module:use an explicit session with no_cursor_timeout=True:UserWarning",
110-
# "module:serverselectiontimeoutms must be:UserWarning",
111-
# "module:Unsupported compressor:UserWarning",
112-
# "module:zlibcompressionlevel must be:UserWarning",
113-
# "module:Wire protocol compression with:UserWarning",
114-
# "module:GridIn property:DeprecationWarning",
115-
# "module:GridOut property:DeprecationWarning",
116-
# # pytest-asyncio known issue: https://github.com/pytest-dev/pytest-asyncio/issues/1032
117-
# "module:.*WindowsSelectorEventLoopPolicy:DeprecationWarning",
118-
# "module:.*et_event_loop_policy:DeprecationWarning",
119-
# # TODO: Remove as part of PYTHON-3923.
120-
# "module:unclosed <eventlet.green.ssl.GreenSSLSocket:ResourceWarning",
121-
# "module:unclosed <socket.socket:ResourceWarning",
122-
# "module:unclosed <ssl.SSLSocket:ResourceWarning",
123-
# "module:unclosed <socket object:ResourceWarning",
124-
# "module:unclosed transport:ResourceWarning",
125-
# # pytest-asyncio known issue: https://github.com/pytest-dev/pytest-asyncio/issues/724
126-
# "module:unclosed event loop:ResourceWarning",
127-
# # https://github.com/eventlet/eventlet/issues/818
128-
# "module:please use dns.resolver.Resolver.resolve:DeprecationWarning",
129-
# # https://github.com/dateutil/dateutil/issues/1314
130-
# "module:datetime.datetime.utc:DeprecationWarning",
131-
# ]
106+
filterwarnings = [
107+
"error",
108+
# Internal warnings raised during tests.
109+
"module:use an explicit session with no_cursor_timeout=True:UserWarning",
110+
"module:serverselectiontimeoutms must be:UserWarning",
111+
"module:Unsupported compressor:UserWarning",
112+
"module:zlibcompressionlevel must be:UserWarning",
113+
"module:Wire protocol compression with:UserWarning",
114+
"module:GridIn property:DeprecationWarning",
115+
"module:GridOut property:DeprecationWarning",
116+
# pytest-asyncio known issue: https://github.com/pytest-dev/pytest-asyncio/issues/1032
117+
"module:.*WindowsSelectorEventLoopPolicy:DeprecationWarning",
118+
"module:.*et_event_loop_policy:DeprecationWarning",
119+
# TODO: Remove as part of PYTHON-3923.
120+
"module:unclosed <eventlet.green.ssl.GreenSSLSocket:ResourceWarning",
121+
"module:unclosed <socket.socket:ResourceWarning",
122+
"module:unclosed <ssl.SSLSocket:ResourceWarning",
123+
"module:unclosed <socket object:ResourceWarning",
124+
"module:unclosed transport:ResourceWarning",
125+
# pytest-asyncio known issue: https://github.com/pytest-dev/pytest-asyncio/issues/724
126+
"module:unclosed event loop:ResourceWarning",
127+
# https://github.com/eventlet/eventlet/issues/818
128+
"module:please use dns.resolver.Resolver.resolve:DeprecationWarning",
129+
# https://github.com/dateutil/dateutil/issues/1314
130+
"module:datetime.datetime.utc:DeprecationWarning",
131+
]
132132
markers = [
133133
"auth_aws: tests that rely on pymongo-auth-aws",
134134
"auth_oidc: tests that rely on oidc auth",

0 commit comments

Comments
 (0)