Skip to content

Commit 7eece59

Browse files
committed
Fix tests
1 parent 58e55c8 commit 7eece59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/genie_python/block_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _update_block_names(self, value: "PVValue", _: Optional[str], _1: Optional[s
100100

101101
# add new block as attributes to class
102102
try:
103-
assert isinstance(value, str | bytes)
103+
assert isinstance(value, (str, bytes)), value
104104
block_names = dehex_decompress_and_dejson(value)
105105
for name in block_names:
106106
attribute_name = name

src/genie_python/genie_epics_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ def get_pv_alarm(self, pv_name: str) -> str:
892892
alarm_val = self.get_pv_value(
893893
"{}.SEVR".format(remove_field_from_pv(pv_name)), to_string=True
894894
)
895-
assert alarm_val is str
895+
assert isinstance(alarm_val, str)
896896
return alarm_val
897897

898898
except Exception:

0 commit comments

Comments
 (0)