File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ """Tests for libtmux's testing utilities."""
12from time import time
23
34import pytest
78
89
910def test_retry_three_times () -> None :
11+ """Test retry_until()."""
1012 ini = time ()
1113 value = 0
1214
@@ -28,6 +30,7 @@ def call_me_three_times() -> bool:
2830
2931
3032def test_function_times_out () -> None :
33+ """Test time outs with retry_until()."""
3134 ini = time ()
3235
3336 def never_true () -> bool :
@@ -41,7 +44,8 @@ def never_true() -> bool:
4144 assert abs ((end - ini ) - 1.0 ) < 0.01
4245
4346
44- def test_function_times_out_no_rise () -> None :
47+ def test_function_times_out_no_raise () -> None :
48+ """Tests retry_until() with exception raising disabled."""
4549 ini = time ()
4650
4751 def never_true () -> bool :
@@ -55,6 +59,7 @@ def never_true() -> bool:
5559
5660
5761def test_function_times_out_no_raise_assert () -> None :
62+ """Tests retry_until() with exception raising disabled, returning False."""
5863 ini = time ()
5964
6065 def never_true () -> bool :
@@ -68,6 +73,7 @@ def never_true() -> bool:
6873
6974
7075def test_retry_three_times_no_raise_assert () -> None :
76+ """Tests retry_until() with exception raising disabled, with closure variable."""
7177 ini = time ()
7278 value = 0
7379
You can’t perform that action at this time.
0 commit comments