simon <[email protected]> added the comment:
Can't get this one working:
import unittest
class MyTest(unittest.TestCase):
def test_a(self):
b = 1
exec(compile("a = b + 1", '', 'single'))
assert a == 2
if __name__ == '__main__':
unittest.main()
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12928>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com