88
99import pytest
1010
11- from _pytest .monkeypatch import MonkeyPatch
12-
1311import libtmux
1412from libtmux .common import (
1513 TMUX_MAX_VERSION ,
3129version_regex = re .compile (r"([0-9]\.[0-9])|(master)" )
3230
3331
34- def test_allows_master_version (monkeypatch : MonkeyPatch ) -> None :
32+ def test_allows_master_version (monkeypatch : pytest . MonkeyPatch ) -> None :
3533 class Hi :
3634 stdout = ["tmux master" ]
3735 stderr = None
@@ -49,7 +47,7 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
4947 ), "Is the latest supported version with -master appended"
5048
5149
52- def test_allows_next_version (monkeypatch : MonkeyPatch ) -> None :
50+ def test_allows_next_version (monkeypatch : pytest . MonkeyPatch ) -> None :
5351 TMUX_NEXT_VERSION = str (float (TMUX_MAX_VERSION ) + 0.1 )
5452
5553 class Hi :
@@ -67,7 +65,7 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
6765 assert TMUX_NEXT_VERSION == get_version ()
6866
6967
70- def test_get_version_openbsd (monkeypatch : MonkeyPatch ) -> None :
68+ def test_get_version_openbsd (monkeypatch : pytest . MonkeyPatch ) -> None :
7169 class Hi :
7270 stderr = ["tmux: unknown option -- V" ]
7371
@@ -84,7 +82,7 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
8482 ), "Is the latest supported version with -openbsd appended"
8583
8684
87- def test_get_version_too_low (monkeypatch : MonkeyPatch ) -> None :
85+ def test_get_version_too_low (monkeypatch : pytest . MonkeyPatch ) -> None :
8886 class Hi :
8987 stderr = ["tmux: unknown option -- V" ]
9088
@@ -97,7 +95,7 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
9795 exc_info .match ("is running tmux 1.3 or earlier" )
9896
9997
100- def test_ignores_letter_versions (monkeypatch : MonkeyPatch ) -> None :
98+ def test_ignores_letter_versions (monkeypatch : pytest . MonkeyPatch ) -> None :
10199 """Ignore letters such as 1.8b.
102100
103101 See ticket https://github.com/tmux-python/tmuxp/issues/55.
@@ -120,7 +118,7 @@ def test_ignores_letter_versions(monkeypatch: MonkeyPatch) -> None:
120118 assert type (has_version ("1.9a" )) is bool
121119
122120
123- def test_error_version_less_1_7 (monkeypatch : MonkeyPatch ) -> None :
121+ def test_error_version_less_1_7 (monkeypatch : pytest . MonkeyPatch ) -> None :
124122 def mock_get_version () -> LooseVersion :
125123 return LooseVersion ("1.7" )
126124
0 commit comments