Skip to content

Commit

Permalink
Ensure that sys.argv is in a known state before parsing args. Closes #4.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 1, 2024
1 parent 30f2883 commit a361b79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jaraco/nxt/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def _get_options():
"""
Get options for the NXT device as well as the MotorController.
>>> import sys; getfixture('monkeypatch').setattr(sys, 'argv', sys.argv[:1])
>>> options = _get_options()
Note that the test above will fail with optparse.OptionConflictError
Expand Down

0 comments on commit a361b79

Please sign in to comment.