Skip to content

Commit

Permalink
Fix pytest tests/benchmarks --benchmark-enable (pydantic#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmontagu committed Aug 21, 2023
1 parent 8bf9e5f commit 7f7d03d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/benchmarks/test_serialization_micro.py
Expand Up @@ -386,6 +386,7 @@ def test_to_string_direct(benchmark):
benchmark(s.to_json, 123)


@pytest.mark.benchmark(group='filter')
def test_filter(benchmark):
v = SchemaSerializer(core_schema.list_schema(core_schema.any_schema()))
assert v.to_python(['a', 'b', 'c', 'd', 'e'], include={-1, -2}) == ['d', 'e']
Expand Down

0 comments on commit 7f7d03d

Please sign in to comment.