diff -r 3b36733009a1 Lib/test/test_tools.py --- a/Lib/test/test_tools.py Tue Apr 03 12:07:39 2012 +0300 +++ b/Lib/test/test_tools.py Wed Apr 04 18:14:34 2012 +0300 @@ -7,6 +7,8 @@ import os import unittest import sysconfig +import imp +import sys from test import support from test.script_helper import assert_python_ok @@ -31,6 +33,23 @@ self.assertGreater(err, b'') +class FixCidTests(unittest.TestCase): + script = os.path.join(basepath, 'scripts', 'fixcid.py') + + def test_syntax_error(self): + """ + tests the patch from issue14491. + """ + try: + imp.load_source("fixcid", self.script) + except SyntaxError: + self.fail("SyntaxError in fixcid.py") + finally: + if 'fixcid' in sys.modules: + del sys.modules['fixcid'] + + + def test_main(): support.run_unittest(ReindentTests)