Skip to content

Commit

Permalink
fix tests for py311
Browse files Browse the repository at this point in the history
- use more specific warnings

Change-Id: If1713e0f3ced05a886cd8f43862db91eba1d16de
  • Loading branch information
zzzeek committed Jun 29, 2022
1 parent 4fbbcf1 commit 0d68060
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.cfg
Expand Up @@ -73,9 +73,12 @@ console_scripts=
tag_build = dev

[tool:pytest]
addopts= --tb native -v -r fxX -W error
addopts= --tb native -v -r fxX -p warnings
python_files=test/*test_*.py
python_classes=*Test
filterwarnings =
error::DeprecationWarning:test
error::DeprecationWarning:mako

[upload]
sign = 1
Expand Down
1 change: 1 addition & 0 deletions test/ext/test_linguaplugin.py
Expand Up @@ -18,6 +18,7 @@ class MockOptions:
class MakoExtractTest(TemplateTest):
@pytest.fixture(autouse=True)
def register_lingua_extractors(self):

from lingua.extractors import register_extractors

register_extractors()
Expand Down

0 comments on commit 0d68060

Please sign in to comment.