diff --git a/tests/test_scenarios.py b/tests/test_scenarios.py index f403d41d..5934d305 100644 --- a/tests/test_scenarios.py +++ b/tests/test_scenarios.py @@ -17,8 +17,9 @@ class TestScenarios(unittest.TestCase): def test_all_scenarios(self): """Run each scenario and then check the generator list.""" + ctx = context.Context() for setupfn in scenarios.supply_scenarios.values(): - ctx = context.Context() + ctx.generators = [] setupfn(ctx) self.assertGreater(len(ctx.generators), 0) # sanity check