[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])
|
||||
# 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:
|
||||
|
|
Loading…
Reference in New Issue