From 8f28fa625e33c9e1c9ab4d6b2a0f96c60fff52f8 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 21 Aug 2019 16:51:01 +0100 Subject: [PATCH] restore switch/case test now that relational const is fixed up --- test/test-suite/test_conversion.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test-suite/test_conversion.py b/test/test-suite/test_conversion.py index afd29b22..0ee88574 100644 --- a/test/test-suite/test_conversion.py +++ b/test/test-suite/test_conversion.py @@ -556,9 +556,8 @@ class TestConversion: assert index.avg() == 1.5 # no match should return n + 1 - # FIXME uncomment when we fix relational const - #index = pyvips.Image.switch([x == 1000, x == 2000]) - #assert index.avg() == 2 + index = pyvips.Image.switch([x == 1000, x == 2000]) + assert index.avg() == 2 def test_insert(self): for x in all_formats: