Skip to content

Commit 738166a

Browse files
committed
move exception to libtmux.exc
1 parent 95c9454 commit 738166a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

libtmux/exc.py

+5
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ class InvalidOption(OptionError):
4949
class AmbiguousOption(OptionError):
5050

5151
"""Option that could potentially match more than one."""
52+
53+
54+
class WaitTimeout(LibTmuxException):
55+
56+
"""Function timed out without meeting condition"""

libtmux/test.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import tempfile
66
import time
77

8+
from .exc import WaitTimeout
9+
810
logger = logging.getLogger(__name__)
911

1012
TEST_SESSION_PREFIX = "libtmux_"
@@ -17,10 +19,6 @@
1719
fixtures_dir = os.path.realpath(os.path.join(current_dir, "fixtures"))
1820

1921

20-
class WaitTimeout(Exception):
21-
'''Function timed out without meeting condition'''
22-
23-
2422
def retry(
2523
fun,
2624
seconds=RETRY_TIMEOUT_SECONDS,

0 commit comments

Comments
 (0)