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.