diff --git a/backtesting/test/_test.py b/backtesting/test/_test.py index ab905481..c2698a93 100644 --- a/backtesting/test/_test.py +++ b/backtesting/test/_test.py @@ -909,7 +909,8 @@ def test_examples(self): self.assertGreaterEqual(len(examples), 4) with chdir(gettempdir()): for file in examples: - run_path(file) + with self.subTest(example=os.path.basename(file)): + run_path(file) def test_backtest_run_docstring_contains_stats_keys(self): stats = Backtest(SHORT_DATA, SmaCross).run()