Author vstinner
Recipients jayyin11043, lukasz.langa, vstinner, zach.ware
Date 2018-01-25.17:32:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516901537.59.0.467229070634.issue32667@psf.upfronthosting.co.za>
In-reply-to
Content
Attached PR 5322 fixes the issue.

Example to reproduce the bug:

$ touch file
$ PATH=$PATH:$PWD/file ./python -m test test_subprocess -m test_invalid_args -v
(...)
======================================================================
ERROR: test_invalid_args (test.test_subprocess.ContextManagerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/vstinner/prog/python/master/Lib/test/test_subprocess.py", line 3050, in test_invalid_args
    stderr=subprocess.PIPE) as proc:
  File "/home/vstinner/prog/python/master/Lib/subprocess.py", line 743, in __init__
    restore_signals, start_new_session)
  File "/home/vstinner/prog/python/master/Lib/subprocess.py", line 1431, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: 'nonexisting_i_hope'
(...)


With PR 5322 applied, the whole Python test suite pass with PATH=$PATH:$PWD/file.
History
Date User Action Args
2018-01-25 17:32:17vstinnersetrecipients: + vstinner, lukasz.langa, zach.ware, jayyin11043
2018-01-25 17:32:17vstinnersetmessageid: <1516901537.59.0.467229070634.issue32667@psf.upfronthosting.co.za>
2018-01-25 17:32:17vstinnerlinkissue32667 messages
2018-01-25 17:32:17vstinnercreate