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

Add test that orig module is accessible #1192

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

tfurmston
Copy link
Contributor

@tfurmston tfurmston commented Nov 12, 2022

This PR adds a test that checks that the _orig module is accessible when a module is overwritten through extensions framework.

@romain-intel
Copy link
Contributor

LGTM

@romain-intel romain-intel merged commit 4665d5a into Netflix:fix/orig_modules Nov 15, 2022
savingoyal pushed a commit that referenced this pull request Nov 17, 2022
* Fix `._orig` access for submodules for MF extensions

This addresses an issue where submodules like `mymodule._orig.submodule` would
not load properly.

This will properly load things like `from .foofa import xyz` from a module or
sub-module in the original location but currently does not work if the
import path is absolute.

* Add test that orig module is accessible (#1192)

* Black format

Co-authored-by: Tom Furmston <tfurmston@googlemail.com>
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.

2 participants