mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Bug #1223937: CalledProcessError.errno -> CalledProcessError.returncode.
This commit is contained in:
parent
8c051da2cf
commit
7d1d43630e
4 changed files with 21 additions and 13 deletions
|
@ -68,7 +68,7 @@ class ProcessTestCase(unittest.TestCase):
|
|||
subprocess.check_call([sys.executable, "-c",
|
||||
"import sys; sys.exit(47)"])
|
||||
except subprocess.CalledProcessError, e:
|
||||
self.assertEqual(e.errno, 47)
|
||||
self.assertEqual(e.returncode, 47)
|
||||
else:
|
||||
self.fail("Expected CalledProcessError")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue