We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d30d268 commit 1e93886Copy full SHA for 1e93886
tests/benchmarks/test_complete_benchmark.py
@@ -140,6 +140,17 @@ def f():
140
raise RuntimeError('expected ValueError')
141
142
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
154
@skip_pydantic
155
@pytest.mark.benchmark(group='complete-wrong')
156
def test_complete_pyd_error(benchmark):
0 commit comments