mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
add filename to ENOENT message #4925
This commit is contained in:
parent
c610e3e55e
commit
5f78040057
4 changed files with 7 additions and 0 deletions
|
@ -666,6 +666,7 @@ class POSIXProcessTestCase(BaseTestCase):
|
|||
# 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue