diff options
author | Jordan Cook <jordan.cook.git@proton.me> | 2022-12-04 13:05:10 -0600 |
---|---|---|
committer | Jordan Cook <jordan.cook.git@proton.me> | 2022-12-30 15:11:33 -0600 |
commit | 851e8750dd32e58554433d1ebebd9fc8d012d4ba (patch) | |
tree | 6e67797f1dfbcc0814d2b2536624bec9a9441b93 /tests/conftest.py | |
parent | b22db537986f91d72d771731df1828e083e45736 (diff) | |
download | requests-cache-851e8750dd32e58554433d1ebebd9fc8d012d4ba.tar.gz |
Add tests for pypy3.9
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 84710ae..bb69fd5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -9,6 +9,7 @@ Note: The protocol ``http(s)+mock://`` helps :py:class:`requests_mock.Adapter` p https://requests-mock.readthedocs.io/en/latest/adapter.html """ import os +import platform import warnings from contextlib import contextmanager from datetime import datetime, timedelta @@ -290,3 +291,9 @@ def ignore_deprecation(): # Some tests must disable url normalization to retain the custom `http+mock://` protocol patch_normalize_url = patch('requests_cache.cache_keys.normalize_url', side_effect=lambda x, y: x) + +# TODO: Debug OperationalErrors with pypy +skip_pypy = pytest.mark.skipif( + platform.python_implementation() == 'PyPy', + reason='pypy-specific database locking issue', +) |