Lines Matching refs:top_level_dir
242 def discover(self, start_dir, pattern='test*.py', top_level_dir=None): argument
271 if top_level_dir is None and self._top_level_dir is not None:
273 top_level_dir = self._top_level_dir
274 elif top_level_dir is None:
276 top_level_dir = start_dir
278 top_level_dir = os.path.abspath(top_level_dir)
280 if not top_level_dir in sys.path:
285 sys.path.insert(0, top_level_dir)
286 self._top_level_dir = top_level_dir
293 if start_dir != top_level_dir:
320 not path.startswith(top_level_dir)):
341 sys.path.remove(top_level_dir)
343 sys.path.remove(top_level_dir)