Message4661
Have you tried using PySystemState#shadow? This is for the purpose of
working around the use of statics, specifically builtins, warnoptions,
and platform. (Unfortunately we won't be able to make breaking API
changes in modules like PySystemState until 3.x.)
PySystemState.modules is an instance variable, so that should also work
for you.
You can see a moderate exercise of this is in test_sys_jy.py,
specifically the test case ShadowingTest.
Note that this bug is related to #471481, #1868602, and #607391. |
|
Date |
User |
Action |
Args |
2009-05-08 18:59:21 | zyasoft | set | messageid: <1241809161.36.0.783619430708.issue1340@psf.upfronthosting.co.za> |
2009-05-08 18:59:21 | zyasoft | set | recipients:
+ zyasoft, fisherja |
2009-05-08 18:59:21 | zyasoft | link | issue1340 messages |
2009-05-08 18:59:20 | zyasoft | create | |
|