allow path-like objects to be cwd on windows (#389)

#157 added the test, but it's currently (correctly) broken on windows.
This commit is contained in:
Benjamin Peterson 2017-03-01 23:04:03 -08:00 committed by GitHub
parent 0b8432538a
commit f52279257e

View File

@ -988,7 +988,7 @@ class Popen(object):
int(not close_fds),
creationflags,
env,
cwd,
os.fspath(cwd),
startupinfo)
finally:
# Child is launched. Close the parent's copy of those pipe