Skip to content

Commit e8d60a7

Browse files
authored
Silence pytest warnings due to sentencepiece version (#43118)
fix
1 parent a616b91 commit e8d60a7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,11 @@ markers = [
7272
log_cli = 1
7373
log_cli_level = "WARNING"
7474
asyncio_default_fixture_loop_scope = "function"
75-
# The above pytest-asyncio rule emits unnessecary warnings when it's not installed, so skip it by regex here
76-
filterwarnings = ["ignore:Unknown config option.*asyncio_default_fixture_loop_scope"]
75+
filterwarnings = [
76+
# The above pytest-asyncio rule emits unnessecary warnings when it's not installed, so skip it here
77+
"ignore:Unknown config option.*asyncio_default_fixture_loop_scope",
78+
# Latest sentencepiece (v0.2.1) triggers those warnings when installed due to its build with afflicted version of swig - skip them
79+
"ignore:builtin type SwigPyPacked has no __module__ attribute:DeprecationWarning",
80+
"ignore:builtin type SwigPyObject has no __module__ attribute:DeprecationWarning",
81+
"ignore:builtin type swigvarlink has no __module__ attribute:DeprecationWarning",
82+
]

0 commit comments

Comments
 (0)