summaryrefslogtreecommitdiff
path: root/src/_pytest/main.py
diff options
context:
space:
mode:
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2020-12-30 11:56:09 +0200
committerGitHub <noreply@github.com>2020-12-30 11:56:09 +0200
commitee03e31831900c3a7aba9f94a9693a833a3ab9de (patch)
tree431d7984ce45526a5403316fddafac12171cd25c /src/_pytest/main.py
parent77519048753f629847d3edaf8344753ad6689ada (diff)
downloadpytest-ee03e31831900c3a7aba9f94a9693a833a3ab9de.tar.gz
[pre-commit.ci] pre-commit autoupdate (#8201)
* [pre-commit.ci] pre-commit autoupdate * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * manual fixes after configuration update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anthony Sottile <asottile@umich.edu>
Diffstat (limited to 'src/_pytest/main.py')
-rw-r--r--src/_pytest/main.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/_pytest/main.py b/src/_pytest/main.py
index 79afdde61..5036601f9 100644
--- a/src/_pytest/main.py
+++ b/src/_pytest/main.py
@@ -116,7 +116,9 @@ def pytest_addoption(parser: Parser) -> None:
help="markers not registered in the `markers` section of the configuration file raise errors.",
)
group._addoption(
- "--strict", action="store_true", help="(deprecated) alias to --strict-markers.",
+ "--strict",
+ action="store_true",
+ help="(deprecated) alias to --strict-markers.",
)
group._addoption(
"-c",
@@ -656,11 +658,11 @@ class Session(nodes.FSCollector):
# Keep track of any collected nodes in here, so we don't duplicate fixtures.
node_cache1: Dict[Path, Sequence[nodes.Collector]] = {}
- node_cache2: Dict[Tuple[Type[nodes.Collector], Path], nodes.Collector] = ({})
+ node_cache2: Dict[Tuple[Type[nodes.Collector], Path], nodes.Collector] = {}
# Keep track of any collected collectors in matchnodes paths, so they
# are not collected more than once.
- matchnodes_cache: Dict[Tuple[Type[nodes.Collector], str], CollectReport] = ({})
+ matchnodes_cache: Dict[Tuple[Type[nodes.Collector], str], CollectReport] = {}
# Dirnames of pkgs with dunder-init files.
pkg_roots: Dict[str, Package] = {}