Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Pydantic warning on data_test run (openai#1445)
This PR fixes a warning from Pydantic when running the JSON dumps test in `data_test.py`: ``` evals/data_test.py::test_jsondumps evals/data_test.py::test_jsondumps evals/data_test.py::test_jsondumps /evals/evals/data.py:191: PydanticDeprecatedSince20: The `json` method is deprecated; use `model_dump_json` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/ for k, v in json.loads(o.json()).items() evals/data_test.py::test_jsondumps evals/data_test.py::test_jsondumps evals/data_test.py::test_jsondumps /evals/lib/python3.9/site-packages/pydantic/main.py:1005: PydanticDeprecatedSince20: The `json` method is deprecated; use `model_dump_json` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.5/migration/ warnings.warn('The `json` method is deprecated; use `model_dump_json` instead.', DeprecationWarning) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ```
- Loading branch information