From eebef2186573bcfdd817274aab4d0bb405e4eb3b Mon Sep 17 00:00:00 2001 From: dgw Date: Sun, 27 Jun 2021 22:23:02 -0500 Subject: [PATCH] conftest: remove hacks/shims for running tests on Python 3.3 --- conftest.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/conftest.py b/conftest.py index 7ba88b956a..a14bf76c8a 100644 --- a/conftest.py +++ b/conftest.py @@ -11,11 +11,7 @@ def pytest_addoption(parser): def pytest_collection_modifyitems(config, items): - # first, make sure things run in order - # needed to mitigate some weird quirk of vcrpy on Python 3.3, no idea why - items.sort(key=lambda item: (item.fspath or '') + '::' + item.name) - - # rest of this is handling for "offline mode" + # handle running tests in "offline mode" if not config.getoption('--offline'): # nothing to skip return @@ -41,10 +37,3 @@ def vcr_cassette_dir(request): # We know it's part of Sopel... parts = parts[1:] return os.path.join('test', 'vcr', *parts) - - -@pytest.fixture -def vcr_cassette_path(request, vcr_cassette_name): - # pytest-vcr 0.3.0 looks for this fixture name - # remove when killing off Python 3.3 support - return os.path.join(vcr_cassette_dir(request), vcr_cassette_name)