From 81b8395dcafa41871c129ef340c4f9a92be2dd02 Mon Sep 17 00:00:00 2001 From: Mei Chu Date: Tue, 24 Jan 2023 23:39:49 -0800 Subject: [PATCH] -test_ColorSpace: Just quickly add in https://github.com/AcademySoftwareFoundation/OpenColorIO/pull/1734 change. Signed-off-by: Mei Chu --- tests/python/test_ColorSpace.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/python/test_ColorSpace.py b/tests/python/test_ColorSpace.py index 38ebb19848..6df46f854f 100644 --- a/tests/python/test_ColorSpace.py +++ b/tests/python/test_ColorSpace.py @@ -579,6 +579,12 @@ def test_display_referred(self, cfg, cs_name, expected_value): ) self.assertEqual(is_linear_to_display_reference, expected_value) + # Test undefined color spaces. + with self.assertRaises(OCIO.Exception): + cfg.isColorSpaceLinear('colorspace_abc', OCIO.REFERENCE_SPACE_SCENE) + with self.assertRaises(OCIO.Exception): + cfg.isColorSpaceLinear('colorspace_abc', OCIO.REFERENCE_SPACE_DISPLAY) + # Test the scene referred color spaces. test_scene_referred(self, cfg, "display_data", False) test_scene_referred(self, cfg, "display_linear-enc", False)