Skip to content

Commit

Permalink
Update argument parser usage in tests
Browse files Browse the repository at this point in the history
Missed in 8e1c574.
  • Loading branch information
adamchainz committed Jan 5, 2022
1 parent 74ccd95 commit 924933d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_install_activate.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_write(tmpdir, name, content_var):
bin_dir.join(n).write(n)

with mock.patch.object(sys, 'argv', ['nodeenv', str(tmpdir)]):
opts = nodeenv.parse_args()[0]
opts = nodeenv.parse_args()
nodeenv.install_activate(str(tmpdir), opts)

content = getattr(nodeenv, content_var)
Expand All @@ -70,7 +70,7 @@ def test_python_virtualenv(tmpdir, name, content_var):
bin_dir.join(n).write(n)

with mock.patch.object(sys, 'argv', ['nodeenv', '-p']):
opts = nodeenv.parse_args()[0]
opts = nodeenv.parse_args()
nodeenv.install_activate(str(tmpdir), opts)

content = getattr(nodeenv, content_var)
Expand Down

0 comments on commit 924933d

Please sign in to comment.