From 59d47955a037788b1482b0bb9116fa04d9c61e1f Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 29 Aug 2024 20:05:48 +0200 Subject: [PATCH] chore: fix test failure due to terminal error --- freqtrade/optimize/hyperopt_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/hyperopt_output.py b/freqtrade/optimize/hyperopt_output.py index 74aa8e547..e3319c255 100644 --- a/freqtrade/optimize/hyperopt_output.py +++ b/freqtrade/optimize/hyperopt_output.py @@ -59,7 +59,7 @@ class HyperoptOutput: max_rows: Optional[int] = None - if self._streaming: + if self._streaming and "pytest" not in sys.modules: ts = get_terminal_size() # Get terminal size. # Account for header, borders, and for the progress bar.