Skip to content

Commit e97a3c1

Browse files
Stop requiring pytest-subtests, it has been incorporated into pytest.
1 parent 7dc1b6c commit e97a3c1

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

tests/test_contents.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,6 @@
88
import importlib_resources as resources
99

1010

11-
if sys.version_info < (3, 6):
12-
# pytest-subtests does not support Python < 3.6, but having the tests
13-
# separated into clean subtests is nice but not required, so we will create
14-
# a stub that does nothing but at least doesn't fail for lack of a fixture.
15-
import contextlib
16-
17-
class _SubTestStub:
18-
@contextlib.contextmanager
19-
def test(self, **kwargs):
20-
yield
21-
22-
_sub_test_stub = _SubTestStub()
23-
24-
@pytest.fixture
25-
def subtests():
26-
yield _sub_test_stub
27-
28-
2911
def get_magic(zone_name):
3012
components = zone_name.split("/")
3113
package_name = ".".join(["tzdata.zoneinfo"] + components[:-1])

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ skip_missing_interpreters = true
77
description = Test that the tzdata contents are accessible
88
deps =
99
pytest
10-
pytest-subtests; python_version>='3.6'
1110
importlib_resources; python_version<'3.7'
1211
commands =
1312
pytest {toxinidir} {posargs}

0 commit comments

Comments
 (0)