1111
1212import pytest
1313
14- from libtmux .exc import WaitTimeout
15- from libtmux .test .waiter import (
14+ from libtmux ._internal .waiter import (
1615 ContentMatchType ,
1716 PaneContentWaiter ,
1817 _contains_match ,
2827 wait_for_window_panes ,
2928 wait_until_pane_ready ,
3029)
30+ from libtmux .exc import WaitTimeout
3131
3232if TYPE_CHECKING :
3333 from libtmux .pane import Pane
@@ -1352,7 +1352,7 @@ def test_wait_for_pane_content_exception_handling(
13521352 This tests how wait_for_pane_content handles exceptions raised during
13531353 the content checking process.
13541354 """
1355- import libtmux .test .waiter
1355+ import libtmux ._internal .waiter
13561356
13571357 # Use monkeypatch to replace the retry_until_extended function
13581358 def mock_retry_value_error (
@@ -1363,7 +1363,7 @@ def mock_retry_value_error(
13631363
13641364 # Patch first scenario - ValueError
13651365 monkeypatch .setattr (
1366- libtmux .test .waiter ,
1366+ libtmux ._internal .waiter ,
13671367 "retry_until_extended" ,
13681368 mock_retry_value_error ,
13691369 )
@@ -1389,7 +1389,7 @@ def mock_retry_timeout(*args: object, **kwargs: object) -> tuple[bool, Exception
13891389
13901390 # Patch second scenario - WaitTimeout
13911391 monkeypatch .setattr (
1392- libtmux .test .waiter ,
1392+ libtmux ._internal .waiter ,
13931393 "retry_until_extended" ,
13941394 mock_retry_timeout ,
13951395 )
@@ -1416,7 +1416,7 @@ def mock_retry_raise(*args: object, **kwargs: object) -> tuple[bool, Exception]:
14161416
14171417 # Patch third scenario - raising exception
14181418 monkeypatch .setattr (
1419- libtmux .test .waiter ,
1419+ libtmux ._internal .waiter ,
14201420 "retry_until_extended" ,
14211421 mock_retry_raise ,
14221422 )
@@ -1656,8 +1656,8 @@ def test_wait_for_all_content_timeout_exception(
16561656 This test specifically targets the exception handling in lines 1069, 1077-1078.
16571657 """
16581658 # Import the module directly
1659- import libtmux .test .waiter
1660- from libtmux .test .waiter import WaitResult
1659+ import libtmux ._internal .waiter
1660+ from libtmux ._internal .waiter import WaitResult
16611661
16621662 # Mock the retry_until_extended function to simulate a WaitTimeout
16631663 def mock_retry_timeout (* args : object , ** kwargs : object ) -> tuple [bool , Exception ]:
@@ -1677,7 +1677,7 @@ def mock_retry_timeout(*args: object, **kwargs: object) -> tuple[bool, Exception
16771677
16781678 # Apply the patch
16791679 monkeypatch .setattr (
1680- libtmux .test .waiter ,
1680+ libtmux ._internal .waiter ,
16811681 "retry_until_extended" ,
16821682 mock_retry_timeout ,
16831683 )
@@ -1834,7 +1834,7 @@ def test_wait_for_pane_content_specific_type_errors(wait_pane: Pane) -> None:
18341834 various type error conditions in different match types.
18351835 """
18361836 # Import error message constants from the module
1837- from libtmux .test .waiter import (
1837+ from libtmux ._internal .waiter import (
18381838 ERR_CONTAINS_TYPE ,
18391839 ERR_EXACT_TYPE ,
18401840 ERR_PREDICATE_TYPE ,
0 commit comments