mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
fix test for subprocess (#16644)
This commit is contained in:
parent
c73f863a8d
commit
57a1233110
1 changed files with 1 additions and 2 deletions
|
@ -2023,8 +2023,7 @@ class ContextManagerTests(BaseTestCase):
|
|||
stderr=subprocess.PIPE) as proc:
|
||||
pass
|
||||
|
||||
if c.exception.errno != errno.ENOENT: # ignore "no such file"
|
||||
raise c.exception
|
||||
self.assertEqual(c.exception.errno, errno.ENOENT)
|
||||
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue