summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-28 15:36:40 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-06-28 15:36:40 (GMT)
commit8eeb1dcbbce61a195cf1f8b2efcaad754fb6a21d (patch)
treef579d6b7878c8181c5a0d292504bdb06707b6e96 /Lib/test/test_exceptions.py
parent5871a8d744f135840c52d0ec2301aa788f52d934 (diff)
downloadcpython-8eeb1dcbbce61a195cf1f8b2efcaad754fb6a21d.zip
cpython-8eeb1dcbbce61a195cf1f8b2efcaad754fb6a21d.tar.gz
cpython-8eeb1dcbbce61a195cf1f8b2efcaad754fb6a21d.tar.bz2
testcapi tests are definitely cpython only
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 89e5758..3ee0856 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -6,7 +6,7 @@ import unittest
import pickle, cPickle
from test.test_support import (TESTFN, unlink, run_unittest, captured_output,
- check_warnings)
+ check_warnings, cpython_only)
from test.test_pep352 import ignore_deprecation_warnings
# XXX This is not really enough, each *operation* should be tested!
@@ -147,6 +147,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.
@@ -571,6 +572,7 @@ class TestSameStrAndUnicodeMsg(unittest.TestCase):
self.assertRaises(UnicodeEncodeError, str, e)
self.assertEqual(unicode(e), u'f\xf6\xf6')
+ @cpython_only
def test_exception_with_doc(self):
import _testcapi
doc2 = "This is a test docstring."