summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-06-29 09:21:31 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-06-29 09:23:41 -0400
commit0d68060725e2ff206aa4c251931b1c023a54483d (patch)
treeec4abaf4dcd3d8e548e1887cba836e475517ab0e
parent4fbbcf16ea444241155e372244ffee2210c8684f (diff)
downloadmako-0d68060725e2ff206aa4c251931b1c023a54483d.tar.gz
fix tests for py311
- use more specific warnings Change-Id: If1713e0f3ced05a886cd8f43862db91eba1d16de
-rw-r--r--setup.cfg5
-rw-r--r--test/ext/test_linguaplugin.py1
2 files changed, 5 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index f147e52..ddbe78c 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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
diff --git a/test/ext/test_linguaplugin.py b/test/ext/test_linguaplugin.py
index 6e2faa8..5aafcff 100644
--- a/test/ext/test_linguaplugin.py
+++ b/test/ext/test_linguaplugin.py
@@ -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()