mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #1066: implement PEP 3109, 2/3 of PEP 3134.
This commit is contained in:
parent
150b7d7d02
commit
828f04ac3f
32 changed files with 761 additions and 253 deletions
|
@ -119,11 +119,6 @@ class SysModuleTest(unittest.TestCase):
|
|||
|
||||
# test that the exit machinery handles SystemExits properly
|
||||
import subprocess
|
||||
# both unnormalized...
|
||||
rc = subprocess.call([sys.executable, "-c",
|
||||
"raise SystemExit, 46"])
|
||||
self.assertEqual(rc, 46)
|
||||
# ... and normalized
|
||||
rc = subprocess.call([sys.executable, "-c",
|
||||
"raise SystemExit(47)"])
|
||||
self.assertEqual(rc, 47)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue