File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 9
9
10
10
import boto3
11
11
from moto import mock_aws
12
- from timeout import TimeoutManager , TestTimeoutException
12
+ from lambda_multiprocessing . timeout import TimeoutManager , TestTimeoutException
13
13
14
14
# add an overhead for duration when asserting the duration of child processes
15
15
# if other processes are hogging CPU, make this bigger
@@ -39,7 +39,7 @@ def return_with_sleep(x, delay=0.3):
39
39
40
40
def _raise (ex : Optional [Exception ]):
41
41
if ex :
42
- raise ex
42
+ raise exfrom . timeout
43
43
44
44
class ExceptionA (Exception ):
45
45
pass
@@ -73,7 +73,7 @@ def tearDown(self):
73
73
# For a potential eternal task, use timeout.TimeoutManager
74
74
def assertDuration (self , min_t = None , max_t = None ):
75
75
class AssertDuration :
76
- def __init__ (self , test ):
76
+ def __init__ (self , test : unittest . TestCase ):
77
77
self .test = test
78
78
def __enter__ (self ):
79
79
self .start_t = time ()
You can’t perform that action at this time.
0 commit comments