From 0a839732134a87e047ad356d14a21e0f13a1b653 Mon Sep 17 00:00:00 2001 From: Eric Lunderberg Date: Tue, 10 Aug 2021 16:02:30 -0500 Subject: [PATCH] Change test on uncacheable to check for explicit TypeError --- tests/python/unittest/test_tvm_testing_features.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/python/unittest/test_tvm_testing_features.py b/tests/python/unittest/test_tvm_testing_features.py index da3bd4630967..8885f55bbf4b 100644 --- a/tests/python/unittest/test_tvm_testing_features.py +++ b/tests/python/unittest/test_tvm_testing_features.py @@ -238,9 +238,9 @@ class EmptyClass: def uncacheable_fixture(self): return self.EmptyClass() - @pytest.mark.xfail(reason="Requests cached fixture of uncacheable type", strict=True) - def test_uses_uncacheable(self, uncacheable_fixture): - pass + def test_uses_uncacheable(self, request): + with pytest.raises(TypeError): + request.getfixturevalue("uncacheable_fixture") class ImplementsReduce: def __reduce__(self):