File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -74,18 +74,20 @@ def test_pyramid_deserialize():
7474
7575
7676def test_mipmaplevel_deprecated ():
77- mml = image_pyramid .MipMapLevel (0 ,
78- imageUrl = image_filename ,
79- maskUrl = mask_filename )
77+ with pytest .deprecated_call ():
78+ mml = image_pyramid .MipMapLevel (
79+ 0 ,
80+ imageUrl = image_filename ,
81+ maskUrl = mask_filename )
8082 assert (mml ['imageUrl' ] == image_filename )
8183 assert (mml ['maskUrl' ] == mask_filename )
8284 with pytest .raises (KeyError ):
8385 mml ['not_a_key' ]
8486
8587 assert (mml == mml )
86-
87- mml2 = image_pyramid .MipMapLevel (0 ,
88- imageUrl = image_filename )
88+ with pytest . deprecated_call ():
89+ mml2 = image_pyramid .MipMapLevel (0 ,
90+ imageUrl = image_filename )
8991 assert (mml != mml2 )
9092 assert (len ([k for k , v in mml ]) == 2 )
9193
You can’t perform that action at this time.
0 commit comments