Skip to content

TypeError: /path/to/pyproject.toml: config option 'timeout' expects a string, got int: 1200 in pytest 9.0 #194

@harupy

Description

@harupy
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/_pytest/main.py", line 314, in wrap_session
INTERNALERROR>     config._do_configure()
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1159, in _do_configure
INTERNALERROR>     self.hook.pytest_configure.call_historic(kwargs=dict(config=self))
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/pluggy/_hooks.py", line 534, in call_historic
INTERNALERROR>     res = self._hookexec(self.name, self._hookimpls.copy(), kwargs, False)
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/pluggy/_callers.py", line 167, in _multicall
INTERNALERROR>     raise exception
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/pluggy/_callers.py", line 121, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/pytest_timeout.py", line 158, in pytest_configure
INTERNALERROR>     settings = get_env_settings(config)
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/pytest_timeout.py", line 363, in get_env_settings
INTERNALERROR>     ini = config.getini("timeout")
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1662, in getini
INTERNALERROR>     self._inicache[canonical_name] = val = self._getini(canonical_name)
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1706, in _getini
INTERNALERROR>     return self._getini_toml(name, canonical_name, type, value, default)
INTERNALERROR>   File "/Users/harutaka.kawamura/Desktop/repositories/mlflow/.venv/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1847, in _getini_toml
INTERNALERROR>     raise TypeError(
INTERNALERROR> TypeError: /Users/harutaka.kawamura/Desktop/repositories/mlflow/pyproject.toml: config option 'timeout' expects a string, got int: 1200

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions