Message132007
Why do you remove NTColor from globals *after* creating it? The assertion looks useless, or are you testing that globals().pop() works as expected?
tmp = namedtuple('NTColor', 'red green blue')
globals().pop('NTColor', None) # remove artifacts from other tests
self.assertNotIn('NTColor', globals())
Can't you remove NTColor from globals before creating it?
globals().pop('NTColor', None)
tmp = namedtuple('NTColor', 'red green blue')
self.assertNotIn('NTColor', globals())
It looks like I missed something important :-) |
|
Date |
User |
Action |
Args |
2011-03-24 16:50:53 | vstinner | set | recipients:
+ vstinner, rhettinger, pitrou, r.david.murray |
2011-03-24 16:50:53 | vstinner | set | messageid: <1300985453.02.0.19916929226.issue11661@psf.upfronthosting.co.za> |
2011-03-24 16:50:52 | vstinner | link | issue11661 messages |
2011-03-24 16:50:52 | vstinner | create | |
|