in testslide/runner.py [0:0]
def _get_test_module_index(self, tb: traceback.StackSummary) -> Optional[int]:
test_module_paths = [
import_module(import_module_name).__file__
for import_module_name in self.import_module_names
]
test_module_index = None
for index, value in enumerate(tb):
path = value[0]
if path in test_module_paths:
if test_module_index is None or index < test_module_index:
test_module_index = index
return test_module_index