From 76a8b5e85f0b7ea8d9b23d93c5a113c3aac0d63f Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Sun, 8 Jan 2017 23:38:23 +0100 Subject: Move regex flags to separate argument --- tests/test_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_ext.py b/tests/test_ext.py index 1301d22..30f5931 100644 --- a/tests/test_ext.py +++ b/tests/test_ext.py @@ -19,7 +19,7 @@ from jinja2._compat import BytesIO, itervalues, text_type importable_object = 23 -_gettext_re = re.compile(r'_\((.*?)\)(?s)') +_gettext_re = re.compile(r'_\((.*?)\)', re.DOTALL) i18n_templates = { -- cgit v1.2.1 From 04b30cdd5c97c35825e8a5b1727382d8569d8347 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Mon, 9 Jan 2017 00:21:45 +0100 Subject: Remove unused/duplicate imports --- tests/conftest.py | 4 ---- tests/test_async.py | 1 - tests/test_debug.py | 2 -- tests/test_idtracking.py | 2 -- 4 files changed, 9 deletions(-) (limited to 'tests') diff --git a/tests/conftest.py b/tests/conftest.py index 1830b1e..04ac784 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,12 +10,8 @@ """ import pytest import os -import re -import sys -from traceback import format_exception from jinja2 import loaders -from jinja2._compat import PY2 from jinja2.utils import have_async_gen from jinja2 import Environment diff --git a/tests/test_async.py b/tests/test_async.py index 5e7e198..88590c7 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -2,7 +2,6 @@ import pytest import asyncio from jinja2 import Template, Environment, DictLoader -from jinja2.utils import have_async_gen from jinja2.exceptions import TemplateNotFound, TemplatesNotFound, \ UndefinedError diff --git a/tests/test_debug.py b/tests/test_debug.py index 22ce1e8..a158524 100644 --- a/tests/test_debug.py +++ b/tests/test_debug.py @@ -11,12 +11,10 @@ import pytest import re - import sys from traceback import format_exception from jinja2 import Environment, TemplateSyntaxError -from traceback import format_exception @pytest.fixture diff --git a/tests/test_idtracking.py b/tests/test_idtracking.py index 5379899..ea01b17 100644 --- a/tests/test_idtracking.py +++ b/tests/test_idtracking.py @@ -1,5 +1,3 @@ -import pytest - from jinja2 import nodes from jinja2.idtracking import symbols_for_node -- cgit v1.2.1