Skip to content

Commit 9ec93a6

Browse files
committed
Imath test : Relax assertion
Imath 2 raised RuntimeError here, and Imath 3 raises ValueError instead. These tests date back to when we had our own bindings for Imath, because official bindings didn't exist - it's not even clear that we need them any more.
1 parent dd1fa74 commit 9ec93a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/IECore/Imath.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def testConstructors(self):
8181
self.assertEqual(v.x, 1)
8282
self.assertEqual(v.y, 1)
8383

84-
self.assertRaises( RuntimeError, imath.V2f, [ 1 ] )
85-
self.assertRaises( RuntimeError, imath.V2f, [ 1, 2, 3 ] )
84+
self.assertRaises( Exception, imath.V2f, [ 1 ] )
85+
self.assertRaises( Exception, imath.V2f, [ 1, 2, 3 ] )
8686

8787
def testDimensions(self):
8888
"""Test V2f dimensions"""
@@ -291,9 +291,9 @@ def testConstructors(self):
291291
self.assertEqual(v.y, 1)
292292
self.assertEqual(v.z, 1)
293293

294-
self.assertRaises( RuntimeError, imath.V3f, [ 1 ] )
295-
self.assertRaises( RuntimeError, imath.V3f, [ 1, 2 ] )
296-
self.assertRaises( RuntimeError, imath.V3f, [ 1, 2, 3, 4 ] )
294+
self.assertRaises( Exception, imath.V3f, [ 1 ] )
295+
self.assertRaises( Exception, imath.V3f, [ 1, 2 ] )
296+
self.assertRaises( Exception, imath.V3f, [ 1, 2, 3, 4 ] )
297297

298298
def testDimensions(self):
299299
"""Test V3f dimensions"""

0 commit comments

Comments
 (0)