-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a __main__ module and set __name__ in JSR-223 (fixes #2846).
This change causes the default engine context in a PyScriptEngine to be created as a module __main__, and __name__ to be defined, comparable to the environment found when executing a Python program. The thread-local name space concept is otherwise undisturbed. org.python.jsr223.ScriptEngineTest cases are modified correspondingly, and testThreadLocalBindings is fixed to test isolation within a thread. --HG-- extra : amend_source : 936c178b0add1449e2d1d83a4d2161cd5bcd0ce0
- Loading branch information
Showing
3 changed files
with
51 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters