Example #1
0
 def test_parse_error_comments(self):
     error = '/tmp/tmpLBKZo5.pgc:5: ERROR: syntax error at or near "//"'
     expected = 'line 5: ERROR: syntax error at or near "--"'
     self.assertEqual(expected, ecpg.parse_error(error))
Example #2
0
 def test_parse_error_comments(self):
     error = '/tmp/tmpLBKZo5.pgc:5: ERROR: syntax error at or near "//"'
     expected = 'line 5: ERROR: syntax error at or near "--"'
     self.assertEqual(expected, ecpg.parse_error(error))
Example #3
0
 def test_parse_error_simple(self):
     error = '/tmp/tmpLBKZo5.pgc:1: ERROR: unrecognized data type name "garbage"'
     expected = 'line 1: ERROR: unrecognized data type name "garbage"'
     self.assertEqual(expected, ecpg.parse_error(error))
Example #4
0
 def test_parse_error_simple(self):
     error = '/tmp/tmpLBKZo5.pgc:1: ERROR: unrecognized data type name "garbage"'
     expected = 'line 1: ERROR: unrecognized data type name "garbage"'
     self.assertEqual(expected, ecpg.parse_error(error))