File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed
Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change 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-
2911def get_magic (zone_name ):
3012 components = zone_name .split ("/" )
3113 package_name = "." .join (["tzdata.zoneinfo" ] + components [:- 1 ])
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ skip_missing_interpreters = true
77description = Test that the tzdata contents are accessible
88deps =
99 pytest
10- pytest-subtests; python_version>='3.6'
1110 importlib_resources; python_version<'3.7'
1211commands =
1312 pytest {toxinidir} {posargs}
You can’t perform that action at this time.
0 commit comments