@@ -288,7 +288,7 @@ def test_complete_table_indexes_triggers_views(self):
288288 output = self .write_input (input_ )
289289 lines = output .decode ().splitlines ()
290290 indices = [i for i , line in enumerate (lines )
291- if line .startswith (self .PS1 )]
291+ if line .startswith (self .PS1_NO_COLOR )]
292292 start , end = indices [- 3 ], indices [- 2 ]
293293 candidates = [l .strip () for l in lines [start + 1 :end ]]
294294 self .assertEqual (candidates ,
@@ -327,7 +327,7 @@ def test_complete_columns(self):
327327 output = self .write_input (input_ )
328328 lines = output .decode ().splitlines ()
329329 indices = [
330- i for i , line in enumerate (lines ) if line .startswith (self .PS1 )
330+ i for i , line in enumerate (lines ) if line .startswith (self .PS1_NO_COLOR )
331331 ]
332332 start , end = indices [- 3 ], indices [- 2 ]
333333 candidates = [l .strip () for l in lines [start + 1 :end ]]
@@ -365,7 +365,7 @@ def test_complete_schemata(self):
365365 output = self .write_input (input_ )
366366 lines = output .decode ().splitlines ()
367367 indices = [
368- i for i , line in enumerate (lines ) if line .startswith (self .PS1 )
368+ i for i , line in enumerate (lines ) if line .startswith (self .PS1_NO_COLOR )
369369 ]
370370 start , end = indices [- 4 ], indices [- 3 ]
371371 candidates = [l .strip () for l in lines [start + 1 :end ]]
0 commit comments