Update tests/test_utils_hastyepics.py
Run CI Tests / test (push) Successful in 52s

This commit is contained in:
2025-08-03 19:19:01 +02:00
parent 66ff45fd57
commit 43725d1edc
-17
View File
@@ -32,23 +32,6 @@ def test_motor_instantiation_fast_vs_epics():
assert (t1 - t0) < (t3 - t2)
def test_motor_instantiation_fast_vs_epics():
# Motor(): creation should be faster than epics.Motor due to no RTYP check and no connection wait
t0 = time.time()
m_fast = Motor("TEST:MOTOR_t1")
t1 = time.time()
t2 = time.time()
m_slow = epics.Motor("TEST:MOTOR_t2")
t3 = time.time()
# Confirm both are valid motors
assert isinstance(m_fast, Motor)
assert isinstance(m_slow, epics.Motor)
# Fast version should be faster
assert (t1 - t0) < (t3 - t2)
def test_motor_without_suffix_and_dot():
# Suffix .VAL ... dot should be stripped from name