Lines Matching refs:top_level_dir
145 def discover(self, start_dir, pattern='test*.py', top_level_dir=None): argument
167 if top_level_dir is None and self._top_level_dir is not None:
169 top_level_dir = self._top_level_dir
170 elif top_level_dir is None:
172 top_level_dir = start_dir
174 top_level_dir = os.path.abspath(top_level_dir)
176 if not top_level_dir in sys.path:
181 sys.path.insert(0, top_level_dir)
182 self._top_level_dir = top_level_dir
187 if start_dir != top_level_dir:
201 sys.path.remove(top_level_dir)