@@ -1591,7 +1591,7 @@ def _redirect_complete(self, text, line, begidx, endidx, compfunc):
15911591 return compfunc (text , line , begidx , endidx )
15921592
15931593 @staticmethod
1594- def _pad_matches_to_display (matches_to_display ):
1594+ def _pad_matches_to_display (matches_to_display ): # pragma: no cover
15951595 """
15961596 Adds padding to the matches being displayed as tab completion suggestions.
15971597 The default padding of readline/pyreadine is small and not visually appealing
@@ -1613,7 +1613,7 @@ def _pad_matches_to_display(matches_to_display):
16131613
16141614 return [cur_match + padding for cur_match in matches_to_display ], len (padding )
16151615
1616- def _display_matches_gnu_readline (self , substitution , matches , longest_match_length ):
1616+ def _display_matches_gnu_readline (self , substitution , matches , longest_match_length ): # pragma: no cover
16171617 """
16181618 Prints a match list using GNU readline's rl_display_match_list()
16191619 This exists to print self.display_matches if it has data. Otherwise matches prints.
@@ -1664,7 +1664,7 @@ def _display_matches_gnu_readline(self, substitution, matches, longest_match_len
16641664 # Redraw prompt and input line
16651665 rl_force_redisplay ()
16661666
1667- def _display_matches_pyreadline (self , matches ):
1667+ def _display_matches_pyreadline (self , matches ): # pragma: no cover
16681668 """
16691669 Prints a match list using pyreadline's _display_completions()
16701670 This exists to print self.display_matches if it has data. Otherwise matches prints.
@@ -3344,7 +3344,7 @@ def do_load(self, arglist):
33443344 # self._script_dir list when done.
33453345 with open (expanded_path , encoding = 'utf-8' ) as target :
33463346 self .cmdqueue = target .read ().splitlines () + ['eos' ] + self .cmdqueue
3347- except IOError as e :
3347+ except IOError as e : # pragma: no cover
33483348 self .perror ('Problem accessing script from {}:\n {}' .format (expanded_path , e ))
33493349 return
33503350
@@ -3371,7 +3371,7 @@ def is_text_file(file_path):
33713371 # noinspection PyUnusedLocal
33723372 if sum (1 for line in f ) > 0 :
33733373 valid_text_file = True
3374- except IOError :
3374+ except IOError : # pragma: no cover
33753375 pass
33763376 except UnicodeDecodeError :
33773377 # The file is not ASCII. Check if it is UTF-8.
@@ -3381,7 +3381,7 @@ def is_text_file(file_path):
33813381 # noinspection PyUnusedLocal
33823382 if sum (1 for line in f ) > 0 :
33833383 valid_text_file = True
3384- except IOError :
3384+ except IOError : # pragma: no cover
33853385 pass
33863386 except UnicodeDecodeError :
33873387 # Not UTF-8
0 commit comments