Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve test suite discovery import errors due to path ordering (#22454)
[Issue #22453](#22453) - Once starting to run discovery, add the projects root path to PATH at index 0 so that any further imports will use the projects root directory and not reference the incorrect directory. - Since the test suite only allows the start_dir to be one directory deep, we can conclude that if the start_dir is not "." or contains a "/", that we need to add that start_dir's parent to PATH. Otherwise, we simply add the start_dir to PATH.
- Loading branch information