From e431c29710715a4d667c299b6a3d9fcf190bfeed Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 1 Mar 2017 22:21:24 -0800 Subject: [PATCH] allow path-like objects to be cwd on windows #157 added the test, but it's currently (correctly) broken on windows. --- Lib/subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/subprocess.py b/Lib/subprocess.py index dffcda3e9fbbc0..23e9bd328c1281 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -988,7 +988,7 @@ def _execute_child(self, args, executable, preexec_fn, close_fds, int(not close_fds), creationflags, env, - cwd, + os.fspath(cwd), startupinfo) finally: # Child is launched. Close the parent's copy of those pipe