Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change test on uncacheable to check for explicit TypeError
Browse files Browse the repository at this point in the history
Lunderberg committed Aug 10, 2021
1 parent a9cc505 commit 0a83973
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
@@ -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):

0 comments on commit 0a83973

Please sign in to comment.