diff --git a/tests/python/unittest/test_tvm_testing_features.py b/tests/python/unittest/test_tvm_testing_features.py index da3bd46309678..8885f55bbf4bd 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):