diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-06-29 09:21:31 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-06-29 09:23:41 -0400 |
commit | 0d68060725e2ff206aa4c251931b1c023a54483d (patch) | |
tree | ec4abaf4dcd3d8e548e1887cba836e475517ab0e | |
parent | 4fbbcf16ea444241155e372244ffee2210c8684f (diff) | |
download | mako-0d68060725e2ff206aa4c251931b1c023a54483d.tar.gz |
fix tests for py311
- use more specific warnings
Change-Id: If1713e0f3ced05a886cd8f43862db91eba1d16de
-rw-r--r-- | setup.cfg | 5 | ||||
-rw-r--r-- | test/ext/test_linguaplugin.py | 1 |
2 files changed, 5 insertions, 1 deletions
@@ -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() |