subprocess.check_call iterates over its arguments to check for spaces
and tabs, and on Windows, the pathlib-specific WindowsPath is not
iterable.
def example_test(name):
path = (Path(__file__).parent / ".." / ".." / "examples" / name).resolve()
def test_function(self):
- subprocess.check_call([sys.executable, path, "generate"], stdout=subprocess.DEVNULL)
+ subprocess.check_call([sys.executable, str(path), "generate"], stdout=subprocess.DEVNULL)
return test_function