Skip to content

Commit a1d14b9

Browse files
committed
Fix tests
1 parent 38f046d commit a1d14b9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pylint/testutils/functional/test_file.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import configparser
88
import sys
99
from collections.abc import Callable
10-
from os.path import basename, exists, join
10+
from os.path import basename, exists, join, split
1111
from pathlib import Path
1212
from typing import TypedDict
1313

@@ -101,7 +101,10 @@ def module(self) -> str:
101101

102102
@property
103103
def expected_output(self) -> str:
104-
files = [p.stem for p in Path(self._directory).glob(f"{self.base}.[0-9]*.txt")]
104+
files = [
105+
p.stem
106+
for p in Path(self._directory).glob(f"{split(self.base)[-1]}.[0-9]*.txt")
107+
]
105108
# pylint: disable-next=bad-builtin
106109
current_version = int("".join(map(str, sys.version_info[:2])))
107110
output_options = [

0 commit comments

Comments
 (0)