Skip to content

Commit 7871e2a

Browse files
Use neater type conversion after caget
1 parent c57e1f1 commit 7871e2a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/test_records.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,7 @@ def run_test_function(
378378
timeout=TIMEOUT,
379379
**get_kwargs)
380380

381-
from cothread.dbr import ca_float, ca_array, ca_str, ca_int
382-
if type(rec_val) in (ca_float, ca_array, ca_str, ca_int):
383-
# '+' is used to convert values returned from cothread, which
384-
# are AugmentedValues, back into their Python native forms
385-
rec_val = +rec_val
381+
rec_val = +rec_val
386382

387383

388384
record_value_asserts(

0 commit comments

Comments
 (0)