Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Use endswith to test for pytest files
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Mar 20, 2022
1 parent 0c7bf17 commit 01f376c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/sage-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def go(filename):
return

# Filter pytest files which are not supposed to have doctests
if '_test.py' in filename:
if filename.endswith('_test.py'):
return

with open(filename, 'r') as f:
Expand Down

0 comments on commit 01f376c

Please sign in to comment.