From 352d5fc6e81c63ceedbe8a22cdd4ed952cc63190 Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Sun, 4 Aug 2019 21:52:23 -0400 Subject: [PATCH] test.test_examples: Convert pathlib-specific class to string. subprocess.check_call iterates over its arguments to check for spaces and tabs, and on Windows, the pathlib-specific WindowsPath is not iterable. --- nmigen/test/test_examples.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/test/test_examples.py b/nmigen/test/test_examples.py index bf729c5..e428a5e 100644 --- a/nmigen/test/test_examples.py +++ b/nmigen/test/test_examples.py @@ -8,7 +8,7 @@ from .tools import * 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 -- 2.30.2