Skip to content

Commit 045266c

Browse files
committed
IECoreImageTest : Adapt for GafferHQ/dependencies 8.0.1
This changes error messages and precision subtly, for reasons I don't want to spend the time ascertaining right now.
1 parent e0606a6 commit 045266c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/IECoreImage/ImageReaderTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def testOrientation( self ) :
212212
def testIncompleteImage( self ) :
213213

214214
r = IECoreImage.ImageReader( os.path.join( "test", "IECoreImage", "data", "exr", "incomplete.exr" ) )
215-
self.assertRaisesRegex( Exception, "Error reading pixel data from image file", r.read )
215+
self.assertRaisesRegex( Exception, "Error reading pixel data from image file|.*Some scanline chunks were missing or corrupted", r.read )
216216

217217
def testHeaderToBlindData( self ) :
218218

test/IECoreImage/ImageThinnerTest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test( self ) :
5858
iic = ii[c]
5959
for j in range( 0, i.channelSize() ) :
6060
# the values may not match exactly due to color space conversions reading the tif on disk
61-
self.assertAlmostEqual( ic[j], iic[j], 6 )
61+
self.assertAlmostEqual( ic[j], iic[j], delta = 0.0001 )
6262

6363
if __name__ == "__main__":
6464
unittest.main()

0 commit comments

Comments
 (0)