errno = int(hex_errno, 16)
if errno != 0:
err_msg = os.strerror(errno)
+ if errno == errno.ENOENT:
+ err_msg += ': ' + repr(args[0])
raise child_exception_type(errno, err_msg)
raise child_exception_type(err_msg)
# string and instead capture the exception that we want to see
# below for comparison.
desired_exception = e
+ desired_exception.strerror += ': ' + repr(sys.executable)
else:
self.fail("chdir to nonexistant directory %s succeeded." %
nonexistent_dir)
Core and Builtins
-----------------
+- Issue #4925: Add filename to error message when executable can't be found in
+ subprocess.
+
- Issue #1574217: isinstance now catches only AttributeError, rather than
masking all errors.