Skip to content

Commit

Permalink
Make utcnow in tests return naive datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
amol- committed Mar 4, 2024
1 parent 1c594cd commit facae42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
except AttributeError:
utcnow = datetime.datetime.utcnow
else:
utcnow = lambda: datetime.datetime.now(datetime.UTC)
utcnow = lambda: datetime.datetime.now(datetime.UTC).replace(tzinfo=None)


def setup_session_dir():
Expand Down

0 comments on commit facae42

Please sign in to comment.