Skip to content

Commit 95835d5

Browse files
committed
Fix IndexError in ci-test-onedir-pkgs nox session
When passing a test path to the install chunk, cmd_args.pop() was called on an empty list since chunks['install'] = []. Add check before popping. Fixes all package test failures which were caused by noxfile crash, not by OptsDict code.
1 parent beb54c9 commit 95835d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,8 @@ def ci_test_onedir_pkgs(session):
19571957
for arg in session.posargs:
19581958
if arg.startswith("tests/pytests/pkg/"):
19591959
# The user is passing test paths
1960-
cmd_args.pop()
1960+
if cmd_args:
1961+
cmd_args.pop()
19611962
break
19621963

19631964
if IS_LINUX:

0 commit comments

Comments
 (0)