Source

rope_py3k / ropetest / pycoretest.py

Diff from to

File ropetest/pycoretest.py

     def test_syntax_errors_in_code(self):
         mod = self.pycore.get_string_module('xyx print\n')
 
+    def test_holding_error_location_information(self):
+        try:
+            mod = self.pycore.get_string_module('xyx print\n')
+        except exceptions.ModuleSyntaxError, e:
+            self.assertEquals(1, e.lineno)
+
 
 class PyCoreInProjectsTest(unittest.TestCase):