From 3d06f7a25718a7a726ecdba60a85f0455a268f7d Mon Sep 17 00:00:00 2001 From: David Halter Date: Sat, 22 Dec 2012 01:52:40 +0100 Subject: [PATCH] and again some forgotten imports in the tests --- test/regression.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/regression.py b/test/regression.py index d5352b8d..d23b3013 100755 --- a/test/regression.py +++ b/test/regression.py @@ -47,8 +47,8 @@ class TestRegression(Base): old, api.settings.star_import_cache_validity = \ api.settings.star_import_cache_validity, new - imports = api.imports - imports.star_import_cache = {} # first empty... + cache = api.cache + cache.star_import_cache = {} # first empty... # path needs to be not-None (otherwise caching effects are not visible) api.Script('', 1, 0, '').complete() time.sleep(2 * new) @@ -57,7 +57,7 @@ class TestRegression(Base): # reset values api.settings.star_import_cache_validity = old length = len(imports.star_import_cache) - imports.star_import_cache = {} + cache.star_import_cache = {} self.assertEqual(length, 1) def test_part_parser(self):