File pytest9.patch of Package python-pytest-black

Index: pytest_black-0.6.0/pytest_black.py
===================================================================
--- pytest_black-0.6.0.orig/pytest_black.py
+++ pytest_black-0.6.0/pytest_black.py
@@ -20,9 +20,9 @@ def pytest_addoption(parser):
     )
 
 
-def pytest_collect_file(file_path, path, parent):
+def pytest_collect_file(file_path, parent):
     config = parent.config
-    if config.option.black and path.ext in [".py", ".pyi"]:
+    if config.option.black and file_path.suffix in [".py", ".pyi"]:
         return BlackFile.from_parent(parent, path=file_path)
 
 
openSUSE Build Service is sponsored by