Lines Matching refs:top_level_dir
163 def discover(self, start_dir, pattern='test*.py', top_level_dir=None): argument
185 if top_level_dir is None and self._top_level_dir is not None:
187 top_level_dir = self._top_level_dir
188 elif top_level_dir is None:
190 top_level_dir = start_dir
192 top_level_dir = os.path.abspath(top_level_dir)
194 if not top_level_dir in sys.path:
199 sys.path.insert(0, top_level_dir)
200 self._top_level_dir = top_level_dir
205 if start_dir != top_level_dir:
219 sys.path.remove(top_level_dir)