diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-06-28 15:39:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-06-28 15:39:55 (GMT) |
commit | 17e0bbc30c8310e88e03992d84c97bb67b5703e1 (patch) | |
tree | d7479def3c819e1b72b5458422fb0d52139115d4 /Lib/test/test_exceptions.py | |
parent | 311d2a93a17e321bf77a84f53666843565856b92 (diff) | |
download | cpython-17e0bbc30c8310e88e03992d84c97bb67b5703e1.zip cpython-17e0bbc30c8310e88e03992d84c97bb67b5703e1.tar.gz cpython-17e0bbc30c8310e88e03992d84c97bb67b5703e1.tar.bz2 |
Merged revisions 82330 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82330 | benjamin.peterson | 2010-06-28 10:36:40 -0500 (Mon, 28 Jun 2010) | 1 line
testcapi tests are definitely cpython only
........
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r-- | Lib/test/test_exceptions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 5372b2b..126a57f 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -7,7 +7,7 @@ import pickle import weakref from test.support import (TESTFN, unlink, run_unittest, captured_output, - gc_collect) + gc_collect, cpython_only) # XXX This is not really enough, each *operation* should be tested! @@ -137,6 +137,7 @@ class ExceptionTests(unittest.TestCase): ckmsg(s, "'continue' not properly in loop") ckmsg("continue\n", "'continue' not properly in loop") + @cpython_only def testSettingException(self): # test that setting an exception at the C level works even if the # exception object can't be constructed. @@ -669,6 +670,7 @@ class ExceptionTests(unittest.TestCase): tb2 = raiseMemError() self.assertEqual(tb1, tb2) + @cpython_only def test_exception_with_doc(self): import _testcapi doc2 = "This is a test docstring." |