Make a test a bit better testable (more flexible).
This commit is contained in:
1 parent
37e3e79faa
commit
6eb3b15e9b
2 files changed
+11
-4
No files matched your search
@@ -131,6 +131,7 @@ class Script(object):
|
||||
self._evaluator = Evaluator(self._grammar, sys_path=sys_path)
|
||||
debug.speed('init')
|
||||
|
||||
@cache.memoize_method
|
||||
def _get_module(self):
|
||||
cache.invalidate_star_import_cache(self._path)
|
||||
parser = FastParser(self._grammar, self._source, self.path)
|
||||
|
||||
Reference in new issue
Block a user