Skip to content

Commit

Permalink
Use pytest.mark to selectively skip test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 29, 2021
1 parent 28e8dc7 commit 14d532a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tempora/tests/test_timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ def test_IntervalGovernor():
func_under_test.assert_called_once_with('a')


@pytest.mark.skipif("not hasattr(time, 'tzset')")
@pytest.fixture
def alt_tz(monkeypatch):
if not hasattr(time, 'tzset'):
pytest.skip("tzset not available")

@contextlib.contextmanager
def change():
val = 'AEST-10AEDT-11,M10.5.0,M3.5.0'
Expand Down

0 comments on commit 14d532a

Please sign in to comment.