mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 09:13:23 +00:00
Remove unnecessary dependency on six.
Remove the last remaining usag of it in VCR.testcase.
This commit is contained in:
1
setup.py
1
setup.py
@@ -45,7 +45,6 @@ class PyTest(TestCommand):
|
|||||||
install_requires = [
|
install_requires = [
|
||||||
"PyYAML",
|
"PyYAML",
|
||||||
"wrapt",
|
"wrapt",
|
||||||
"six>=1.5",
|
|
||||||
"yarl",
|
"yarl",
|
||||||
# Support for urllib3 >=2 needs Python >=3.10
|
# Support for urllib3 >=2 needs Python >=3.10
|
||||||
# so we need to block urllib3 >=2 for Python <3.10 for now.
|
# so we need to block urllib3 >=2 for Python <3.10 for now.
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ import types
|
|||||||
from collections import abc as collections_abc
|
from collections import abc as collections_abc
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import six
|
|
||||||
|
|
||||||
from . import filters, matchers
|
from . import filters, matchers
|
||||||
from .cassette import Cassette
|
from .cassette import Cassette
|
||||||
from .persisters.filesystem import FilesystemPersister
|
from .persisters.filesystem import FilesystemPersister
|
||||||
@@ -256,5 +254,5 @@ class VCR:
|
|||||||
|
|
||||||
def test_case(self, predicate=None):
|
def test_case(self, predicate=None):
|
||||||
predicate = predicate or self.is_test_method
|
predicate = predicate or self.is_test_method
|
||||||
# TODO: Remove this reference to `six` in favor of the Python3 equivalent
|
metaclass = auto_decorate(self.use_cassette, predicate)
|
||||||
return six.with_metaclass(auto_decorate(self.use_cassette, predicate))
|
return metaclass("temporary_class", (), {})
|
||||||
|
|||||||
Reference in New Issue
Block a user