Alembic tests: make failures a bit easier to diagnose.
authorSybren A. Stüvel <sybren@stuvel.eu>
Mon, 19 Jun 2017 15:55:51 +0000 (17:55 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Mon, 19 Jun 2017 15:55:51 +0000 (17:55 +0200)
tests/python/alembic_tests.py

index e36a6391298dd8e2e272c26d44cefe8450bd9823..96a68de9801f1de27c269436ed9a702fc1603eab 100755 (executable)
@@ -157,6 +157,8 @@ class AbstractAlembicTest(unittest.TestCase):
             if proptype == 'CompoundProperty':
                 # To read those, call self.abcprop() on it.
                 continue
+            if len(parts) < 2:
+                raise ValueError('Error parsing result from abcprop: %s', info.strip())
             valtype_and_arrsize, name_and_extent = parts[1:]
 
             # Parse name and extent