Skip to content

Commit 1e93886

Browse files
committed
add test_complete_core_isinstance
1 parent d30d268 commit 1e93886

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/benchmarks/test_complete_benchmark.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,17 @@ def f():
140140
raise RuntimeError('expected ValueError')
141141

142142

143+
@pytest.mark.benchmark(group='complete-wrong')
144+
def test_complete_core_isinstance(benchmark):
145+
v = SchemaValidator(schema())
146+
data = input_data_wrong()
147+
assert v.isinstance_python(data) is False
148+
149+
@benchmark
150+
def f():
151+
v.isinstance_python(data)
152+
153+
143154
@skip_pydantic
144155
@pytest.mark.benchmark(group='complete-wrong')
145156
def test_complete_pyd_error(benchmark):

0 commit comments

Comments
 (0)