Skip to content

Commit 0d68060

Browse files
committed
fix tests for py311
- use more specific warnings Change-Id: If1713e0f3ced05a886cd8f43862db91eba1d16de
1 parent 4fbbcf1 commit 0d68060

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

setup.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,12 @@ console_scripts=
7373
tag_build = dev
7474

7575
[tool:pytest]
76-
addopts= --tb native -v -r fxX -W error
76+
addopts= --tb native -v -r fxX -p warnings
7777
python_files=test/*test_*.py
7878
python_classes=*Test
79+
filterwarnings =
80+
error::DeprecationWarning:test
81+
error::DeprecationWarning:mako
7982

8083
[upload]
8184
sign = 1

test/ext/test_linguaplugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class MockOptions:
1818
class MakoExtractTest(TemplateTest):
1919
@pytest.fixture(autouse=True)
2020
def register_lingua_extractors(self):
21+
2122
from lingua.extractors import register_extractors
2223

2324
register_extractors()

0 commit comments

Comments
 (0)