Skip to content

Commit

Permalink
Make tests pass in 2032 (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwiedemann authored Mar 12, 2024
1 parent 1083986 commit 4a533aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/benchmarks/test_micro_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,13 @@ def test_date_from_datetime_str(self, benchmark, validator):
def test_core_future(self, benchmark):
v = SchemaValidator({'type': 'date', 'gt': date.today()})

benchmark(v.validate_python, date(2032, 1, 1))
benchmark(v.validate_python, date(2932, 1, 1))

@pytest.mark.benchmark(group='date future')
def test_core_future_str(self, benchmark):
v = SchemaValidator({'type': 'date', 'gt': date.today()})

benchmark(v.validate_python, str(date(2032, 1, 1)))
benchmark(v.validate_python, str(date(2932, 1, 1)))


class TestBenchmarkUnion:
Expand Down

0 comments on commit 4a533aa

Please sign in to comment.