Skip to content

Commit

Permalink
test: set the correct module overrides (#15486)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Feb 26, 2024
1 parent a23e546 commit 4163480
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/cli/test_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def test_ipython(self, monkeypatch):
assert shell.autodetect() == "ipython"

def test_plain(self, monkeypatch):
monkeypatch.setitem(sys.modules, "plain", pretend.stub())
"""Neither bpython nor ipython are installed."""
monkeypatch.setitem(sys.modules, "bpython", None)
monkeypatch.setitem(sys.modules, "IPython", None)
assert shell.autodetect() == "plain"


Expand Down

0 comments on commit 4163480

Please sign in to comment.