Skip to content

Commit

Permalink
Remove utc fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
finnagin authored Jul 18, 2022
1 parent 441cf1d commit 246fef1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,16 +658,6 @@ def mock_server() -> Iterator[MockServer]:
yield test_server


@pytest.fixture
def utc() -> Iterator[None]:
# time.tzset() is not implemented on some platforms, e.g. Windows.
tzset = getattr(time, "tzset", lambda: None)
with patch.dict(os.environ, {"TZ": "UTC"}):
tzset()
yield
tzset()


@pytest.fixture
def proxy(request: pytest.FixtureRequest) -> str:
return request.config.getoption("proxy")

0 comments on commit 246fef1

Please sign in to comment.