This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author simonsteiner
Recipients simonsteiner
Date 2011-09-07.13:39:53
SpamBayes Score 0.0072522233
Marked as misclassified No
Message-id <1315402794.53.0.380470470235.issue12928@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2011-09-07 13:39:54simonsteinersetrecipients: + simonsteiner
2011-09-07 13:39:54simonsteinersetmessageid: <1315402794.53.0.380470470235.issue12928@psf.upfronthosting.co.za>
2011-09-07 13:39:53simonsteinerlinkissue12928 messages
2011-09-07 13:39:53simonsteinercreate