Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! improve test coverage
  • Loading branch information
blueyed committed Feb 17, 2019
commit ffa586b5c40cf6149d4d3044bf74df1a074ec368
2 changes: 0 additions & 2 deletions tests/exceptions/enqueue_with_others_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

def check_tb_sink(message):
exception = message.record["exception"]
if exception is None:
return
assert exception.traceback is not None


Expand Down
4 changes: 2 additions & 2 deletions tests/exceptions/not_enough_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

@logger.catch
def decorated(x, y, z):
pass
raise NotImplementedError


def not_decorated(x, y, z):
pass
raise NotImplementedError


decorated(1)
Expand Down
4 changes: 2 additions & 2 deletions tests/exceptions/too_many_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

@logger.catch
def decorated():
pass
raise NotImplementedError


def not_decorated():
pass
raise NotImplementedError


decorated(1)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_exceptions_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def normalize(formatted_exception):
return formatted_exception


def generate(output, outpath):
def generate(output, outpath): # pragma: no cover
"""Generate new output file if exception formatting is updated"""
with open(outpath, "w") as file:
file.write(output)
Expand Down