TypeError when using TestClock with pytest #2087
-
I am trying to write an integration test for bar aggregation using historical trades from Polygon.io. Objectives
Test Setup
ErrorTypeError: cannot set 'pytest_asyncio_scoped_event_loop' attribute of immutable type 'nautilus_trader.common.component.TestClock'
Relevant Files
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Niqnil I think this is a version compatibility issue. Try using |
Beta Was this translation helpful? Give feedback.
Hi @Niqnil
I think this is a version compatibility issue. Try using
pytest-asyncio = "==0.21.1"
https://github.com/nautechsystems/nautilus_trader/blob/develop/pyproject.toml#L108