diff options
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 06614cc..296cd58 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -8,27 +8,30 @@ except ImportError: _speedups = None -@pytest.fixture(scope='session', params=( - _native, - pytest.param(_speedups, marks=pytest.mark.skipif( - _speedups is None, - reason='speedups unavailable', - )) -)) +@pytest.fixture( + scope="session", + params=( + _native, + pytest.param( + _speedups, + marks=pytest.mark.skipif(_speedups is None, reason="speedups unavailable"), + ), + ), +) def _mod(request): return request.param -@pytest.fixture(scope='session') +@pytest.fixture(scope="session") def escape(_mod): return _mod.escape -@pytest.fixture(scope='session') +@pytest.fixture(scope="session") def escape_silent(_mod): return _mod.escape_silent -@pytest.fixture(scope='session') +@pytest.fixture(scope="session") def soft_str(_mod): return _mod.soft_unicode |