We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50a97c2 commit 7157bc0Copy full SHA for 7157bc0
octobot/backtesting/octobot_backtesting.py
@@ -198,6 +198,10 @@ def check_remaining_objects(self):
198
}
199
for obj in gc.get_objects():
200
if isinstance(obj, to_watch_objects):
201
+ if isinstance(obj, exchanges.ExchangeManager) and not obj.is_initialized:
202
+ # Ignore exchange managers that have not been initialized
203
+ # and are irrelevant. Pytest fixtures can also retain references failing tests
204
+ continue
205
objects_references[type(obj)][1].append(obj)
206
objects_references[type(obj)] = (objects_references[type(obj)][0] + 1,
207
objects_references[type(obj)][1])
0 commit comments