Closed
Description
$ git clone https://github.com/pydantic/pydantic-settings.git
$ cd pydantic-settings
$ git checkout v2.8.1
$ uv venv
$ . .venv/bin/activate
(pydantic-settings) $ uv pip install -r requirements/all.txt
(pydantic-settings) $ uv pip install -e .
(pydantic-settings) $ pytest
[…]
Results (1.96s):
395 passed
4 skipped
(pydantic-settings) $ uv pip install --upgrade typing-extensions
[…]
- typing-extensions==4.12.2
+ typing-extensions==4.13.2
(pydantic-settings) $ pytest
[…]
============================================== FAILURES ==============================================
_______________________________ test_cli_metavar_format_type_alias_312 _______________________________
@pytest.mark.skipif(sys.version_info < (3, 12), reason='requires python 3.12 or higher')
def test_cli_metavar_format_type_alias_312():
> exec(
"""
type TypeAliasInt = int
assert CliSettingsSource(SimpleSettings)._metavar_format(TypeAliasInt) == 'TypeAliasInt'
"""
)
tests/test_source_cli.py:2068:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E AssertionError
<string>:3: AssertionError
Summary of Failures
┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
┃ File ┃ Function ┃ Function Line ┃ Error Line ┃ Error ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩
│ tests/test_source_c… │ test_cli_metavar_f… │ 2066 │ 2068 │ AssertionError │
└────────────────────────┴───────────────────────┴─────────────────┴──────────────┴──────────────────┘
Results (1.49s):
1 failed
394 passed
4 skipped