Raised on import_path() if there is a mismatch of __file__'s. This can happen when `import_path` is called multiple times with different filenames that has the same basename but reside in packages (for example "/tests1/test_foo.py" and "/tests2/test_foo.py").
| 491 | |
| 492 | |
| 493 | class ImportPathMismatchError(ImportError): |
| 494 | class="st">"""Raised on import_path() if there is a mismatch of __file__&class="cm">#x27;s. |
| 495 | |
| 496 | This can happen when `import_path` is called multiple times with different filenames that has |
| 497 | the same basename but reside in packages |
| 498 | (for example class="st">"/tests1/test_foo.py" and class="st">"/tests2/test_foo.py"). |
| 499 | class="st">""" |
| 500 | |
| 501 | |
| 502 | def import_path( |