]> granicus.if.org Git - python/commit
bpo-32667: Fix tests when $PATH contains a file (GH-5322) (#5323)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Jan 2018 21:39:36 +0000 (13:39 -0800)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 25 Jan 2018 21:39:36 +0000 (22:39 +0100)
commit255dbd2102d5dec5ffbd0b94084377e98c3b56c4
tree14d0e637e23a0a0c9a09f4e495a585151b9ad408
parent196b8cbab2b5044b92077f0b3c07c798fff68bc6
bpo-32667: Fix tests when $PATH contains a file (GH-5322) (#5323)

Some tests failed when the PATH environment variable contained a path
to an existing file. Fix tests to ignore also NotADirectoryError, not
only FileNotFoundError and PermissionError.
(cherry picked from commit b31206a223955d614d7769f95fb979d60f77bf87)
Lib/test/test_dtrace.py
Lib/test/test_subprocess.py