Skip to content

Commit

Permalink
changed deprecated functionality (mandiant#959)
Browse files Browse the repository at this point in the history
* changed deprecated fspath mentions

---------

Co-authored-by: SylanPadmakumar <[email protected]>
  • Loading branch information
2 people authored and c-urly committed Mar 14, 2024
1 parent dacc732 commit d525c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def pytest_collect_file(parent, file_path):
class YamlFile(pytest.File):
def collect(self):
spec = yaml.safe_load(self.path.open())
test_dir = Path(self.fspath).parent
test_dir = self.path.parent
for platform, archs in spec["Output Files"].items():
for arch, filename in archs.items():
# TODO specify max runtime via command line option
Expand Down Expand Up @@ -152,7 +152,7 @@ def runtest(self):
self._test_strings(str(test_path))

def reportinfo(self):
return self.fspath, 0, "usecase: %s" % self.name
return self.path, 0, "usecase: %s" % self.name

def repr_failure(self, excinfo):
if isinstance(excinfo.value, FLOSSStringsNotExtracted):
Expand Down

0 comments on commit d525c8f

Please sign in to comment.