-
Notifications
You must be signed in to change notification settings - Fork 7
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
dylink's module cache doesn't work under repyportability #28
Comments
We seem to have a bunch of problems with dylink. Someone needs to clean On Fri, Jun 20, 2014 at 5:44 AM, aaaaalbert [email protected]
|
… provides the same module instance (and thus correct instance of an imported exception class) to each importer of that module. Contrast with portability/tests/ut_portability_catch_nestedimported_exception.py, and SeattleTestbed/portability#28.
Two unit tests are available to check the behavior of the module cache now:
|
This build file is needed to set up the RepyV2 runtime which the custominstallerbuilder requires to run. We need to do that because plain Python `import`'s from Repy libraries don't currently work. Future contributors, please check if this workaround is still needed every time progress is made on SeattleTestbed/portability#25, SeattleTestbed/portability#26, SeattleTestbed/portability#27, or SeattleTestbed/portability#28!
dylink
caches modules that have already been imported in (the same or another) source file so that ciruclar imports don't become a problem, see SeattleTestbed/seattlelib_v2#127. This works as expected when running Repy, but fails under repyportability.Here's a test case that shows what happens. (I'll make a unit test out of it too).
testlib1
just defines an error class, which is imported and raised in a function oftestlib2
, which in turn is called by the main program, where we try to catch that exception.To check the repyportability behavior, add this to the main program:
The issue is related to #27 and possibly Seattle's #1422, SeattleTestbed/seattlelib_v2#125, SeattleTestbed/repy_v2#22 (why's that a RepyV2 issue btw?), and SeattleTestbed/repy_v2#55.
The text was updated successfully, but these errors were encountered: