Skip to content

Commit 87a3a70

Browse files
authored
Merge pull request numpy#26813 from ngoldbaum/fix-future-spin-version
TST: fix 'spin test single_test' for future versions of spin
2 parents 128d1ae + 8e52d4f commit 87a3a70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.spin/cmds.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ def test(ctx, pytest_args, markexpr, n_jobs, tests, verbose, *args, **kwargs):
254254
pytest_args = ('numpy',)
255255

256256
if '-m' not in pytest_args:
257+
if len(pytest_args) == 1 and not tests:
258+
tests = pytest_args[0]
259+
pytest_args = ()
257260
if markexpr != "full":
258261
pytest_args = ('-m', markexpr) + pytest_args
259262

0 commit comments

Comments
 (0)