fix test for subprocess (#16644)

This commit is contained in:
Andrew Svetlov 2012-12-26 23:31:45 +02:00
parent c73f863a8d
commit 57a1233110

View file

@ -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():