[Subversion] / PyProtocols / src / protocols / tests / test_advice.py |
version 161, Wed Nov 10 04:19:56 2004 UTC | version 168, Sat Nov 20 22:56:25 2004 UTC | ||
---|---|---|---|
|
|
||
assert d is globals() | assert d is globals() | ||
def checkClassExec(self): | |||
d = {'sys':sys, 'getFrameInfo':getFrameInfo} | |||
exec "class Foo: info=getFrameInfo(sys._getframe())" in d | |||
kind,module,f_locals,f_globals = d['Foo'].info | |||
assert kind=="class-exec", kind | |||
|
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |