Skip to content

Commit 3135ab2

Browse files
Sylan-Padmakumarc-urly
authored andcommitted
changed deprecated functionality (mandiant#959)
* changed deprecated fspath mentions --------- Co-authored-by: SylanPadmakumar <112978372+SylanPadmakumar@users.noreply.github.com>
1 parent 9bd5838 commit 3135ab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def pytest_collect_file(parent, file_path):
5858
class YamlFile(pytest.File):
5959
def collect(self):
6060
spec = yaml.safe_load(self.path.open())
61-
test_dir = Path(self.fspath).parent
61+
test_dir = self.path.parent
6262
for platform, archs in spec["Output Files"].items():
6363
for arch, filename in archs.items():
6464
# TODO specify max runtime via command line option
@@ -152,7 +152,7 @@ def runtest(self):
152152
self._test_strings(str(test_path))
153153

154154
def reportinfo(self):
155-
return self.fspath, 0, "usecase: %s" % self.name
155+
return self.path, 0, "usecase: %s" % self.name
156156

157157
def repr_failure(self, excinfo):
158158
if isinstance(excinfo.value, FLOSSStringsNotExtracted):

0 commit comments

Comments
 (0)