Skip to content

Commit

Permalink
Change test on uncacheable to check for explicit TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunderberg committed Aug 13, 2021
1 parent 6d47165 commit bd264b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/python/unittest/test_tvm_testing_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit bd264b2

Please sign in to comment.