Skip to content

Commit

Permalink
exclude python shutdown handling from test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Feb 26, 2024
1 parent 8915b96 commit 4cfd9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakebids/_warningformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def formatwarning(
import linecache

line = linecache.getline(filename, lineno).rstrip()
except Exception: # noqa: BLE001
except Exception: # noqa: BLE001 # pragma: no cover
# When a warning is logged during Python shutdown, linecache
# and the import machinery don't work anymore
line = None
Expand Down

0 comments on commit 4cfd9bf

Please sign in to comment.