Skip to content

Commit 5a42152

Browse files
committed
Do not run pytest without filenames
1 parent 543f8d6 commit 5a42152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/sage-runtests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ if __name__ == "__main__":
177177
# we do not silently hide typos.
178178
filenames = [f for f in args.filenames
179179
if f.endswith("_test.py") or not os.path.isfile(f)]
180-
if filenames or not args.filenames:
180+
if filenames:
181181
print(f"Running pytest on {filenames} with options {pytest_options}")
182182
exit_code_pytest = pytest.main(filenames + pytest_options)
183183
if exit_code_pytest == 5:

0 commit comments

Comments
 (0)