Esempio n. 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))
Esempio n. 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))
Esempio n. 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))
Esempio n. 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))