Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added current directory to sys.path during try_import to avoid any relative import failures in test files #118

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

naylor-b
Copy link
Member

Summary

Aviary team ran into an issue where all tests in a file were being skipped because they were attempting to do a relative import of a builder file at file scope and the import was failing because the local directory was not part of sys.path at the time when the test module was first imported (during test discovery).

Backwards incompatibilities

None

New Dependencies

None

@swryan swryan merged commit 49fa75f into OpenMDAO:master Jul 24, 2024
2 checks passed
@naylor-b naylor-b deleted the sys_path_timing branch July 24, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants