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 c844643 commit 629df78Copy full SHA for 629df78
octobot/backtesting/octobot_backtesting.py
@@ -306,5 +306,8 @@ async def start_exchange_loggers(self):
306
def _get_remaining_object_error(obj, expected, actual):
307
error = f"too many remaining {obj.__name__} instances: expected: {expected} actual {actual[0]}"
308
for i in range(len(actual[1])):
309
- error += f"{sys.getrefcount(actual[1][i])} references on {actual[1][i]}"
+ debug_info = ""
310
+ if isinstance(actual[1][i], exchanges.ExchangeManager):
311
+ debug_info = f" ({actual[1][i].debug_info})"
312
+ error += f"{sys.getrefcount(actual[1][i])} references on {actual[1][i]} {debug_info}"
313
return error
0 commit comments