Skip to content

Commit

Permalink
Exclude CGI-specific helper functions from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Oct 16, 2024
1 parent 64cb0bf commit 726ce0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/irclog2html/irclogsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def search_irc_logs(query, stats=None, where=DEFAULT_LOGFILE_PATH,
return


def print_cgi_headers(stream):
def print_cgi_headers(stream): # pragma: nocover
print("Content-Type: text/html; charset=UTF-8", file=stream)
print("", file=stream)

Expand Down Expand Up @@ -239,7 +239,7 @@ def print_search_results(query, where=DEFAULT_LOGFILE_PATH,
print(FOOTER, file=stream)


def unicode_stdout():
def unicode_stdout(): # pragma: nocover
stream = sys.stdout.buffer
return io.TextIOWrapper(stream, 'ascii',
errors='xmlcharrefreplace',
Expand Down

0 comments on commit 726ce0d

Please sign in to comment.