Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b238545 commit e9b185fCopy full SHA for e9b185f
1 file changed
Lib/test/test_posix.py
@@ -1522,7 +1522,9 @@ def test_no_such_executable(self):
1522
pid = self.spawn_func(no_such_executable,
1523
[no_such_executable],
1524
os.environ)
1525
- except FileNotFoundError as exc:
+ # bpo-35794: PermissionError can be raised if there are
1526
+ # directories in the $PATH that are not accessible.
1527
+ except (FileNotFoundError, PermissionError) as exc:
1528
self.assertEqual(exc.filename, no_such_executable)
1529
else:
1530
pid2, status = os.waitpid(pid, 0)
0 commit comments