Skip to content

Commit 79c9e29

Browse files
committed
trying to debug occasional test failure in test_block.py on CI
1 parent c181518 commit 79c9e29

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

neo/test/tools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ def assert_same_sub_schema(ob1, ob2, equal_almost=True, threshold=1e-10, exclude
189189
the comparison
190190
191191
'''
192+
if isinstance(ob1, SpikeTrainList) and isinstance(ob2, list): # for debugging occasional test failure
193+
raise Exception("items={}\nspike_time_array={}\nlist length: {}".format(str(ob1._items), str(ob1._spike_time_array), len(ob2)))
192194
assert type(ob1) == type(ob2), 'type({}) != type({})'.format(type(ob1), type(ob2))
193195
classname = ob1.__class__.__name__
194196

0 commit comments

Comments
 (0)