[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d417b44e4d
commit
9f2668dc08
|
@ -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
|
||||||
|
|
|
@ -927,10 +927,9 @@ class Session(nodes.Collector):
|
||||||
same_file = os.path.samefile(node.path, matchparts[0])
|
same_file = os.path.samefile(node.path, matchparts[0])
|
||||||
# we don't want to find links, so we at least
|
# we don't want to find links, so we at least
|
||||||
# exclude symlinks to regular directories
|
# exclude symlinks to regular directories
|
||||||
is_match = (
|
is_match = same_file and os.path.islink(
|
||||||
same_file and
|
node.path
|
||||||
os.path.islink(node.path) == os.path.islink(matchparts[0])
|
) == os.path.islink(matchparts[0])
|
||||||
)
|
|
||||||
|
|
||||||
# Name part e.g. `TestIt` in `/a/b/test_file.py::TestIt::test_it`.
|
# Name part e.g. `TestIt` in `/a/b/test_file.py::TestIt::test_it`.
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue