Skip to content

Commit

Permalink
Fix py3.12 datetime deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ml31415 committed May 22, 2024
1 parent 6dac1e1 commit 886195b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_stream_reader(session, iterations=15):
assert all(isinstance(key, str) for key in market_definitions)
assert all(isinstance(md, MarketDefinition) for md in market_definitions.values())

now = datetime.datetime.utcnow().astimezone(datetime.timezone.utc)
now = datetime.datetime.now(datetime.timezone.utc)
order_book = sr.caches[MARKET_STREAM_ID].order_book # type: ignore[union-attr]
assert len(order_book) == len(market_definitions)
assert all(isinstance(key, str) for key in order_book)
Expand Down

0 comments on commit 886195b

Please sign in to comment.