We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f046d commit a1d14b9Copy full SHA for a1d14b9
pylint/testutils/functional/test_file.py
@@ -7,7 +7,7 @@
7
import configparser
8
import sys
9
from collections.abc import Callable
10
-from os.path import basename, exists, join
+from os.path import basename, exists, join, split
11
from pathlib import Path
12
from typing import TypedDict
13
@@ -101,7 +101,10 @@ def module(self) -> str:
101
102
@property
103
def expected_output(self) -> str:
104
- files = [p.stem for p in Path(self._directory).glob(f"{self.base}.[0-9]*.txt")]
+ files = [
105
+ p.stem
106
+ for p in Path(self._directory).glob(f"{split(self.base)[-1]}.[0-9]*.txt")
107
+ ]
108
# pylint: disable-next=bad-builtin
109
current_version = int("".join(map(str, sys.version_info[:2])))
110
output_options = [
0 commit comments