8
8
from datetime import timedelta
9
9
from threading import Thread
10
10
from time import sleep
11
- from typing import Callable
11
+ from typing import Any , Callable
12
12
13
13
import h5py
14
14
from parameterized import parameterized
@@ -182,7 +182,7 @@ def test_GIVEN_running_instrument_WHEN_block_logging_but_not_changing_THEN_block
182
182
g .waitfor_runstate ("SETUP" , maxwaitsecs = self .TIMEOUT )
183
183
nexus_path = r"/raw_data_1/selog/{}/value_log" .format (test_block_name )
184
184
185
- def test_function (f : h5py . File , run_number : int ) -> None :
185
+ def test_function (f : Any , run_number : int ) -> None :
186
186
# if no values are logged this will fail with a
187
187
# "Unable to synchronously open object (component not found)" exception
188
188
values = [val for val in f [nexus_path + r"/value" ][:]]
@@ -191,7 +191,7 @@ def test_function(f: h5py.File, run_number: int) -> None:
191
191
)
192
192
self .assertTrue (
193
193
len (values ) > 0 ,
194
- f "Not enough values logged to file with delay { delay } " ,
194
+ "Not enough values logged to file" ,
195
195
)
196
196
197
197
nexus_file_with_retry (g .adv .get_instrument (), run_number , test_function )
@@ -319,7 +319,7 @@ def _assert_title_correct(self, test_title, expected_title):
319
319
320
320
g .waitfor_runstate ("SETUP" , maxwaitsecs = self .TIMEOUT )
321
321
322
- def test_func (f : h5py . File , run_number : int ) -> None :
322
+ def test_func (f : Any , run_number : int ) -> None :
323
323
saved_title = f ["/raw_data_1/title" ][0 ].decode ()
324
324
self .assertEqual (expected_title , saved_title )
325
325
0 commit comments