pytest-dev/pytest
Documented errors, page 2 of 2. Back to pytest-dev/pytest
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| --pdbcls: could not import | validation | error | cli, debugging, pdb, import |
| could not find test report matching | validation | error | pytester, test-report, nodeid, validation |
| : Cannot use both [pytest] and… | exception | error | config, toml, pyproject, schema |
| escaping with "\" not supported in marker expression | exception | error | pytest, marker-expression, tokenizer, syntax-error, escaping |
| plugin cannot be disabled | exception | error | plugin, cli, config, validation |
| The fixture value for | exception | error | fixtures, teardown, request, lifecycle |
| package argument cannot contain :: selection parts | validation | error | pytest, collection, pyargs, selection, cli |
| cannot create lockfile in | exception | error | pytest, pathlib, oserror, locking, concurrency |
| not found in warning list | exception | error | pytest, warns, warningsrecorder, pop, assertion |
| ' ' is not recognized as a logging level name for ' '… | validation | error | pytest, logging, config, ini, validation |
| : error | exception | error | cli, argparse, usage-error |
| lowercase short options are reserved | exception | error | argparse, plugins, conftest, reserved-options |
| has no valid result | exception | error | pytest, runner, callinfo, plugin-api, attribute-access |
| session or parent must be provided | exception | error | pytest, nodes, typeerror, internal-api |
| Expected id to be a string or a `pytest.HIDDEN_PARAM`… | exception | error | pytest, parametrize, type-error, test-id, pytest-param |
| must be a directory, given | exception | error | cli, argparse, config, validation |
| help argument cannot be None for | validation | error | pytest, config, ini, help, plugin |
| nodeid or parent must be provided | exception | error | pytest, nodes, typeerror, internal-api |
| absolute tolerance can't be NaN. | exception | error | pytest, approx, tolerance, nan, value-validation |
| object at has no attribute | exception | error | pytest, monkeypatch, attribute-error, import-path, setattr |
| : Cannot use both [tool.pytest] (native TOML types) and… | exception | error | config, toml, pyproject, migration |
| invalid truth value | exception | error | pytest, config, strtobool, string-parsing, boolean |
| must be a filename, given | exception | error | cli, argparse, config, validation |
| redirected stdin is pseudofile, has no tell() | exception | error | capture, stdin, io, unsupported-operation |
| pytest.approx() does not support nan_ok for… | exception | error | pytest, approx, datetime, nan, misuse |
| redirected stdin is pseudofile, has no flush() | exception | error | capture, stdin, flush, io |
| You must specify at least one parameter to match on. | validation | error | pytest, raises, raisesexc, validation, misuse |
| absolute tolerance for datetime/timedelta must be a… | exception | error | approx, timedelta, datetime, type-mismatch |
| Cannot exit without entering first | exception | error | pytest, warns, warningsrecorder, context-manager, lifecycle |
| parsefactories() requires holder or node_or_obj | validation | error | pytest, fixtures, internal-api, plugin, signature |
| Too many fields ( ), expected at most 5 separated by… | exception | error | pytest, config, warnings, filterwarnings, string-parsing |
| config is not a valid argument for from_parent | exception | error | pytest, nodes, typeerror, internal-api |
| must be absolute import path string, not | exception | error | pytest, monkeypatch, type-error, import-path, validation |
| expected ; got | exception | error | pytest, marker-expression, parser, syntax-error, grammar |
| found no collectors for | validation | error | pytest, collection, nodeid, cli |
| Invalid regex | exception | error | pytest, config, warnings, filterwarnings, regex |
| module or package not found | validation | error | pytest, collection, pyargs, import, packaging |
| unexpected character/s | exception | error | pytest, marker-expression, kwarg, syntax-error, value-literal |
| name is not allowed to contain path separators | exception | error | cache, cacheprovider, path-validation, security |
| ini option has a type, which has no implicit default; pass… | exception | error | pytest, config, addini, default, union, literal, plugin-api |
| object (type: ) must be callable | validation | error | pytest, warns, callable, api-misuse, validation |
| is not a Warning subclass | exception | error | pytest, config, warnings, filterwarnings, category |
| Blocking conftest files using -p is not supported: -p no | exception | error | plugin, conftest, cli, config |
| cannot write to stdin | exception | error | capture, stdin, io, unsupported-operation |
| class fixtures not supported (maybe in the future) | validation | error | pytest, fixtures, decorator, class |
| use setattr(target, name, value) with name being a string… | exception | error | pytest, monkeypatch, type-error, setattr, argument-validation |
| unknown capturing method | exception | error | capture, config, cli, validation |
| Cannot write to stdin | exception | error | capture, stdin, io, unsupported-operation |
| absolute tolerance for a scalar value must be an int, float… | exception | error | pytest, approx, tolerance, type-validation, scalar |
| {path} | exception | error | pytest, pathlib, importerror, filesystem, collection |
| Config file ' ' has an unsupported format. Supported… | validation | error | cli, config, file-format |
| Pytest terminal summary report not found | validation | error | pytester, runresult, terminal-summary, parsing |
| PYTEST_THEME_MODE environment variable has an invalid value | exception | error | terminalwriter, pygments, environment, config |
| file or directory not found | validation | error | pytest, collection, cli, filesystem, path |
| function definitions are not supposed to be run as tests | exception | error | function-definition, internal, collection, runtest |
| cannot truncate stdin | exception | error | capture, stdin, io, unsupported-operation |
| function not available in | exception | error | fixtures, scope, request |
| directory argument cannot contain :: selection parts | validation | error | pytest, collection, cli, selection, filesystem |
| Expected , but got an exception instance | validation | error | pytest, raises, type-instance-mismatch, misuse |
| option names already added | exception | error | pytest, config, addoption, naming-conflict, plugin-api, cli |
| relative tolerance for timedelta must be a number, got | exception | error | approx, timedelta, type-mismatch |
| : config option ' ' expects an int, got | exception | error | pytest, config, toml, type-validation, int |
| Directory ' ' not found. Check your '--rootdir' option. | validation | error | cli, config, path, ci |
| Config file ' ' not found. Check your '-c/--config-file'… | validation | error | cli, config, path, ci |
| : config option ' ' expects a list of strings, but item at… | exception | error | pytest, config, toml, type-validation, paths |
| session is not a valid argument for from_parent | exception | error | pytest, nodes, typeerror, internal-api |
| Unrecognized runpytest option | exception | error | pytester, runpytest, internal, configuration |
| mode must be an integer | exception | error | py-path, localpath, filesystem, type-mismatch |
| is already an alias of | exception | error | pytest, config, addini, alias, naming-conflict, plugin-api |
| invalid lineno | exception | error | pytest, config, warnings, filterwarnings, lineno |
| relative tolerance can't be infinite. | exception | error | approx, timedelta, validation, infinity |
| Unexpected keyword arguments passed to pytest.raises | validation | error | raises, kwargs, api-misuse, deprecation |
| : config option ' ' expects a float, got | exception | error | pytest, config, toml, type-validation, float |
| {path}: {exc} | exception | error | config, toml, pyproject, parse-error |
| : config option ' ' expects a list for type ' ', got | exception | error | pytest, config, toml, type-validation, args, linelist |
| Unknown parametrize_long_str_id_strategy | validation | error | parametrize, ini-config, config, validation |
| Expected an exception type or a tuple of exception types… | validation | error | raises, expected-exception, validation, api-misuse |
| path not available in | exception | error | fixtures, scope, request, path |
| error raised while trying to determine id of parameter | exception | error | parametrize, idfn, callable, validation |
| module not available in | exception | error | fixtures, scope, request |
| ids must be a callable or an iterable | validation | error | parametrize, ids, type-error, validation |
| : config option ' ' expects a bool, got | exception | error | pytest, config, toml, type-validation, bool |
| invalid type for ini option | exception | error | pytest, config, addini, type-validation, literal, plugin-api |
| cls not available in | exception | error | fixtures, scope, request |
| module has no attribute | exception | warning | getattr, attribute-access, internal, deprecation |
| Specifying plugins as objects is not supported in pytester… | validation | error | pytester, subprocess, plugins, serialization |
| alias conflicts with existing configuration option | exception | error | pytest, config, addini, alias, naming-conflict, plugin-api |
| Config file ' ' is a directory. Check your… | validation | error | cli, config, path |
| found 2 or more testreports matching | validation | error | pytester, test-report, nodeid, ambiguity |
| example " " is not found as a file or directory | exception | error | pytester, copy-example, filesystem, lookup |
| ext must not be None | validation | error | pytester, makefile, validation, type-error |
| invalid type for lines2 | validation | error | pytester, linematcher, type-error, sequence |
| pytester.makefile expects a file extension, try . | validation | error | pytester, makefile, extension, validation |
| pytester_example_dir is unset, can't copy examples | validation | error | pytester, copy-example, ini-config, config |
| line not found in output | validation | error | pytester, linematcher, output-matching, validation |
| can't be found as module or package in | exception | error | pytester, copy-example, lookup, filesystem |