summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-02-27 00:15:55 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-02-27 00:15:55 (GMT)
commitba7bf49a54223b940b773c8678ab8c60da12a155 (patch)
tree48a0d5941089fdf3a1bc926ac6b94be26c84529e /Lib/test/test_exceptions.py
parent44c526174d9296ce358ccee9652382e7ea5377f4 (diff)
downloadcpython-ba7bf49a54223b940b773c8678ab8c60da12a155.zip
cpython-ba7bf49a54223b940b773c8678ab8c60da12a155.tar.gz
cpython-ba7bf49a54223b940b773c8678ab8c60da12a155.tar.bz2
Remove the ability to slice/index on exceptions per PEP 352.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 0ff3b10..c0a5094 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -302,13 +302,6 @@ class ExceptionTests(unittest.TestCase):
'pickled "%r", attribute "%s' %
(e, checkArgName))
- def testSlicing(self):
- # Test that you can slice an exception directly instead of requiring
- # going through the 'args' attribute.
- args = (1, 2, 3)
- exc = BaseException(*args)
- self.failUnlessEqual(exc[:], args)
-
def testKeywordArgs(self):
# test that builtin exception don't take keyword args,
# but user-defined subclasses can if they want