Browse Source

python: skip a test for operation that can't be made legal at the moment.

next
Vladimír Vondruš 4 months ago
parent
commit
8893c1c057
  1. 3
      src/python/magnum/test/test.py

3
src/python/magnum/test/test.py

@ -590,10 +590,13 @@ class CompressedImageView(unittest.TestCase):
# TODO adapt from ImageView.test_init_image
pass
@unittest.skip("No way to create a CompressedImage with valid format at the moment")
def test_init_image_empty(self):
a = CompressedImage2D()
a_refcount = sys.getrefcount(a)
# TODO this blows up inside Magnum because the block size of `a` is
# invalid
view = CompressedImageView2D(a)
self.assertEqual(view.size, (0, 0))
self.assertIs(view.owner, None)

Loading…
Cancel
Save