[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-03-03 07:42:33 +00:00
parent d417b44e4d
commit 9f2668dc08
2 changed files with 4 additions and 5 deletions

View File

@ -1 +1 @@
Fixed a regression in 8.0.2 where tests have been collected multiple times in the CI under Windows
Fixed a regression in 8.0.2 where tests have been collected multiple times in the CI under Windows

View File

@ -927,10 +927,9 @@ class Session(nodes.Collector):
same_file = os.path.samefile(node.path, matchparts[0])
# we don't want to find links, so we at least
# exclude symlinks to regular directories
is_match = (
same_file and
os.path.islink(node.path) == os.path.islink(matchparts[0])
)
is_match = same_file and os.path.islink(
node.path
) == os.path.islink(matchparts[0])
# Name part e.g. `TestIt` in `/a/b/test_file.py::TestIt::test_it`.
else: