ErrLookup › pytest-dev/pytest

pytest-dev/pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing · Python · 212 source files

Analyzed at 0d6fbdeffa on 2026-08-11. 196 documented errors.

Code / MessageTypeSeverityTags
Unittest class cleanup errors
exception error unittest, exceptiongroup, teardown, cleanup, class-scope
Missing required plugins
exception error plugin, config, dependency, validation
multiple thread exception warnings
exception error threading, exceptiongroup, warnings, concurrency, xdist
multiple unraisable exception warnings
exception error unraisable, exceptiongroup, gc, warnings, destructors, pypy
: (from )
exception error conftest, import, config, plugin
errors during test teardown
exception error pytest, runner, teardown, exception-group, fixtures, finalizer
Expected an int string for option
exception error config, ini, int, defensive, internal
Only `ExceptionGroup[Exception]` or…
validation error pytest, exception-group, raises, type-argument, validation
`allow_unwrapped=True` bypasses the `match` and `check`…
validation error pytest, raises, raisesgroup, allow-unwrapped, match-check, validation
: config option ' ' expects one of , got
exception error config, ini, literal, validation, choices
invalid specification
exception error py-path, localpath, argument-validation
is the lower-most scope
validation error scope, fixtures, internal, enum
: config option ' ' expects a string, got
exception error config, ini, toml, literal, validation
pytest_markeval_namespace() needs to return a dict, got
validation error markers, hooks, plugins, markeval, skipif, xfail
module has __version__ , required is
exception warning pytest, outcomes, skip, versioning
no checker available for
exception error pytest, localpath, py-path, checker, validation, legacy
pytest.approx() only supports ordered sequences, but got
exception error approx, sequence, collection, type-mismatch
approx() is not supported in a boolean context. Did you…
exception error pytest, approx, assertion, boolean-context, misuse
INTERNALERROR: Unknown entry type returned
exception critical pytest, reports, unserialization, xdist, version-mismatch, internalerror
Expected , but got
validation error pytest, raises, type-validation, misuse
expected value must support abs(...) when relative…
exception error pytest, approx, tolerance, type-validation, supports-abs
Error importing plugin
exception error plugin, import, config, dependency
pytest.approx() does not support nested data structures
exception error pytest, approx, sequence, nested-structure, list
The temporary directory
exception error security, tmp-path, symlink, filesystem, toctou
could not create numbered dir with prefix
exception error pytest, pathlib, oserror, filesystem, permissions
Can't find module at location
exception error py-path, localpath, import, importlib
: config option ' ' expects one of , got
exception error config, ini, toml, validation, type
use delattr(target, name) or delattr(target) with target…
exception error pytest, monkeypatch, api-misuse, typeerror
Expected a float string for option
exception error config, ini, float, defensive, internal
You cannot specify multiple exceptions with…
validation error pytest, raises, raisesgroup, allow-unwrapped, validation
redirected stdin is pseudofile, has no seek(int)
exception error capture, stdin, io, unsupported-operation
- maybe you meant pytest.mark.skipif?
exception error markers, skip, skipif, user-error
Could not resolve for
exception error pytest, pathlib, importerror, collection, sys-path
pytest.approx() does not support nested dictionaries: key=
exception error pytest, approx, dict, nested-structure, mapping
Expected , but got . RaisesGroup does not support tuples of…
validation error pytest, raises, raisesgroup, tuple-argument, validation
`allow_unwrapped=True` has no effect when expecting a…
validation error pytest, raises, raisesgroup, allow-unwrapped, nested-group, validation
The temporary directory
exception error security, tmp-path, ownership, filesystem, containers
fixture ' ' not found
exception error fixtures, lookup, testing, conftest
relative tolerance for a scalar value must be an int, float…
exception error pytest, approx, tolerance, type-validation, scalar
You cannot specify a nested structure inside a RaisesGroup…
validation error pytest, raises, raisesgroup, flatten-subgroups, nested-group, validation
option dest already used by (this is the option that maps…
exception error config, argparse, plugins, conftest
Don't know how to compute
exception error pytest, localpath, py-path, hash, validation, legacy
Keyword expressions do not support call parameters.
validation error pytest, keyword, selection, cli, mark
Warning must be str or Warning, got
validation error pytest, warns, warning-message, non-str, cpupn-workaround
is not a normalized and relative path
validation error tmp-path, security, validation, path-traversal
not found: (no match in any of )
validation error pytest, collection, nodeid, selection, cli
closing quote " " is missing
exception error pytest, marker-expression, tokenizer, syntax-error, quoting
XXX win32
exception error pytest, localpath, py-path, windows, platform, legacy
: : at column
exception error pytest, marker-expression, cli, syntax-error, usage-error
unknown configuration type
validation error pytest, config, ini, legacy, plugin
Empty parameter set in
exception error pytest, parametrize, collection-error, configuration, empty-parameter-set
Plugins may be specified as a sequence or a ','-separated…
exception error plugin, conftest, config, validation
pytest.approx() does not support relative tolerance for…
exception error pytest, approx, datetime, tolerance, relative
errors while tearing down fixture
exception error pytest, fixtures, teardown, exceptiongroup, finalizers
invalid part specification
exception error py-path, localpath, internal-api, argument-validation
: config option ' ' expects a list for type 'paths', got
exception error pytest, config, toml, type-validation, paths
path cannot contain [] parametrization
validation error pytest, collection, cli, parametrization, argument
{name}
exception error pytest, monkeypatch, attributeerror, api-misuse
import error in
exception error pytest, monkeypatch, import-error, import-path, fixtures
@pytest.fixture is being applied more than once to the same…
validation error pytest, fixtures, decorator, duplicate
did not yield a value
exception error pytest, fixtures, generator, yield, control-flow
unexpected reserved python keyword
exception error pytest, marker-expression, kwarg, syntax-error, reserved-keyword
exceptions must be derived from Warning, not
validation error pytest, warns, warningschecker, type-validation, misuse
Multiple doctest failures
exception error doctest, testing, documentation
unknown configuration value
exception error config, ini, api-misuse, plugin
warning must be an instance of Warning or subclass, got
exception error pytest, nodes, valueerror, warnings
can only pass None, Path instances or non-empty strings to…
exception error pytest, localpath, py-path, type-validation, legacy
got instead of Mark
exception error pytest, marks, type-error, markdecorator, collection
PYTEST_THEME environment variable has an invalid value
exception error terminalwriter, pygments, environment, config
cannot compare ' ' to numpy.ndarray
exception error pytest, approx, numpy, type-conversion, comparison
Cannot enter twice
exception error pytest, warns, warningsrecorder, context-manager, lifecycle
config or parent must be provided
exception error pytest, nodes, typeerror, internal-api
( , , )
exception error pytest, pathlib, import-mismatch, collection
not a valid python identifier
exception error pytest, marker-expression, kwarg, syntax-error, identifier
tmp_path_retention_count must be >= 0. Current input
validation error config, tmp-path, ini, validation
expected string as 'msg' parameter, got ' '…
exception error pytest, outcomes, typeerror, api-misuse
pytest.approx() requires an explicit tolerance for…
exception error pytest, approx, datetime, tolerance, required-argument
: not a string or path object
exception error pytest, localpath, py-path, type-validation, legacy
pytest: reading from stdin while output is captured! …
exception error capture, stdin, io, test-isolation
relative tolerance can't be negative
exception error pytest, approx, tolerance, value-validation, relative
parameter needs to be a string, but given
validation error pytest, junitxml, type-check, reporting
pytest.param cannot add pytest.mark.usefixtures; see…
exception error pytest, parametrize, usefixtures, value-error, marks
Unexpected keyword arguments passed to pytest.warns
validation error pytest, warns, kwargs, api-misuse, validation
Error evaluating while defining fixture ' '. Expected a…
exception error pytest, fixtures, scope, dynamic, signature
is the upper-most scope
validation error scope, fixtures, internal, enum
has no attribute
exception error pytest, monkeypatch, attribute-error, setattr, raising
no option named
exception error pytest, config, getoption, plugin-api, option-lookup
cannot delete key in keywords dict
exception warning pytest, keywords, value-error, immutable, collection
redirected stdin is pseudofile, has no fileno()
exception error capture, stdin, fileno, io
can only process bytes
exception error py-path, localpath, io, type-mismatch
absolute tolerance can't be negative
exception error pytest, approx, tolerance, value-validation, scalar
use setattr(target, name, value) or setattr(target, value)…
exception error pytest, monkeypatch, type-error, setattr, api-misuse
is not a string or pytest.mark.* Marker
exception error pytest, nodes, markers, valueerror
-o/--override-ini expects option=value style
validation error cli, config, override-ini
invalid type for ini option
exception error pytest, config, addini, type-validation, plugin-api
relative tolerance can't be NaN.
exception error pytest, approx, tolerance, nan, relative
Marker name must NOT start with underscore
exception error pytest, marks, attribute-error, naming, markergenerator
unexpected character
exception error pytest, marker-expression, tokenizer, syntax-error, lexing
lock path got renamed after successful creation
exception error pytest, pathlib, oserror, race-condition, filesystem
: pytest configuration must be under a [pytest] table…
exception error config, toml, pyproject, schema