1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 17:45:35 +00:00

Enable E, W and F linters for ruff

This commit is contained in:
Jair Henrique
2023-06-26 17:07:59 -03:00
parent 6b2fc182c3
commit 016a394f2c
11 changed files with 33 additions and 43 deletions

View File

@@ -6,10 +6,6 @@ def test_vcr_import_deprecation(recwarn):
# Remove imported module entry if already loaded in another test
del sys.modules["vcr"]
import vcr
import vcr # noqa: F401
if sys.version_info[0] == 2:
assert len(recwarn) == 1
assert issubclass(recwarn[0].category, DeprecationWarning)
else:
assert len(recwarn) == 0
assert len(recwarn) == 0