From: William D. Jones Date: Mon, 5 Aug 2019 01:52:23 +0000 (-0400) Subject: test.test_examples: Convert pathlib-specific class to string. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=352d5fc6e81c63ceedbe8a22cdd4ed952cc63190;p=nmigen.git 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. --- 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