This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user