File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 77import pytest
88
99from libtmux import Pane , Session , Window , exc
10- from libtmux .common import has_gte_version , has_lt_version
10+ from libtmux .common import has_gte_version
1111from libtmux .test import TEST_SESSION_PREFIX , namer
1212
1313logger = logging .getLogger (__name__ )
@@ -132,10 +132,8 @@ def test_empty_session_option_returns_None(session):
132132
133133def test_show_option_unknown (session ):
134134 """Session.show_option raises UnknownOption for invalid option."""
135- cmd_exception = exc .AmbiguousOption
136- if has_gte_version ('2.8' ) and has_lt_version ('3.0' ):
137- cmd_exception = exc .UnknownOption
138- elif has_gte_version ('3.0' ):
135+ cmd_exception = exc .UnknownOption
136+ if has_gte_version ('2.4' ):
139137 cmd_exception = exc .InvalidOption
140138 with pytest .raises (cmd_exception ):
141139 session .show_option ('moooz' )
Original file line number Diff line number Diff line change 77import pytest
88
99from libtmux import Pane , Server , Window , exc
10- from libtmux .common import has_gte_version , has_lt_version
10+ from libtmux .common import has_gte_version
1111
1212logger = logging .getLogger (__name__ )
1313
@@ -213,10 +213,8 @@ def test_show_window_option_unknown(session):
213213 """Window.show_window_option raises UnknownOption for bad option key."""
214214 window = session .new_window (window_name = 'test_window' )
215215
216- cmd_exception = exc .AmbiguousOption
217- if has_gte_version ('2.8' ) and has_lt_version ('3.0' ):
218- cmd_exception = exc .UnknownOption
219- elif has_gte_version ('3.0' ):
216+ cmd_exception = exc .UnknownOption
217+ if has_gte_version ('2.4' ):
220218 cmd_exception = exc .InvalidOption
221219 with pytest .raises (cmd_exception ):
222220 window .show_window_option ('moooz' )
You can’t perform that action at this time.
0 commit comments