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:16:25
SpamBayes Score 0.0002939321
Marked as misclassified No
Message-id <1315401386.62.0.247993467146.issue12928@psf.upfronthosting.co.za>
In-reply-to
Content
works in 2.6, fails in 3.2.2

import unittest
class MyTest(unittest.TestCase):
    def test_a(self):
        exec(compile("a = 1", '', 'single'))
        assert a == 1
if __name__ == '__main__':
    unittest.main()
History
Date User Action Args
2011-09-07 13:16:26simonsteinersetrecipients: + simonsteiner
2011-09-07 13:16:26simonsteinersetmessageid: <1315401386.62.0.247993467146.issue12928@psf.upfronthosting.co.za>
2011-09-07 13:16:26simonsteinerlinkissue12928 messages
2011-09-07 13:16:25simonsteinercreate