summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorPeter Astrand <astrand@lysator.liu.se>2006-07-14 14:04:45 (GMT)
committerPeter Astrand <astrand@lysator.liu.se>2006-07-14 14:04:45 (GMT)
commit7d1d43630e117fdc3ccb0a8c6a9b31ab7d443016 (patch)
tree4df183d0c83a0bbe980f6cb76de64a9f2fef0c79 /Lib/test/test_subprocess.py
parent8c051da2cfee6f0347970386465fb0831a4e179f (diff)
downloadcpython-7d1d43630e117fdc3ccb0a8c6a9b31ab7d443016.zip
cpython-7d1d43630e117fdc3ccb0a8c6a9b31ab7d443016.tar.gz
cpython-7d1d43630e117fdc3ccb0a8c6a9b31ab7d443016.tar.bz2
Bug #1223937: CalledProcessError.errno -> CalledProcessError.returncode.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 483e202..f2c3083 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -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")