[Subversion] / PyProtocols / src / protocols / tests / test_advice.py |
version 158, Sun Nov 7 07:29:54 2004 UTC | version 161, Wed Nov 10 04:19:56 2004 UTC | ||
---|---|---|---|
|
|
||
class SuperTest(TestCase): | class SuperTest(TestCase): | ||
def checkMetaSuper(self): | def checkMetaSuper(self): | ||
|
|
||
if k in f.f_locals: | if k in f.f_locals: | ||
del f.f_locals[k] # simulate old-style advisor | del f.f_locals[k] # simulate old-style advisor | ||
add_assignment_advisor(track,1) | add_assignment_advisor(track,frame=sys._getframe()) | ||
test_var = 1 | test_var = 1 | ||
self.assertEqual(log, [(sys._getframe(),'test_var',1)]) | self.assertEqual(log, [(sys._getframe(),'test_var',1)]) | ||
log = [] | log = [] |
|
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |