Skip to content

Commit

Permalink
Conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Jun 29, 2024
1 parent eaa8197 commit 5f4f496
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
import time

# Isolate tests from the host machine’s timezone
os.environ["TZ"] = "UTC"
time.tzset()
if hasattr(time, "tzset"):
os.environ["TZ"] = "UTC"
time.tzset()

0 comments on commit 5f4f496

Please sign in to comment.