summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-02 04:45:53 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-02 04:45:53 +0000
commite152aab977c8cffff8879f1ad3029792185ae884 (patch)
tree5f79456405d5b55907218b2fb1f579be3f5c1554 /Lib/test/test_exceptions.py
parentd770ebd286661c6822422eeff5d108436a624512 (diff)
downloadcpython-git-e152aab977c8cffff8879f1ad3029792185ae884.tar.gz
Convert docstrings to comments so regrtest -v prints method names
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 444b632ef1..8bd385ad38 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -112,8 +112,8 @@ class ExceptionTests(unittest.TestCase):
except Exception, e: pass
def testSyntaxErrorMessage(self):
- """make sure the right exception message is raised for each of
- these code fragments"""
+ # make sure the right exception message is raised for each of
+ # these code fragments
def ckmsg(src, msg):
try:
@@ -143,8 +143,8 @@ class ExceptionTests(unittest.TestCase):
ckmsg("continue\n", "'continue' not properly in loop")
def testSettingException(self):
- """test that setting an exception at the C level works even if the
- exception object can't be constructed."""
+ # test that setting an exception at the C level works even if the
+ # exception object can't be constructed.
class BadException:
def __init__(self_):
@@ -181,7 +181,7 @@ class ExceptionTests(unittest.TestCase):
test_capi2()
def testAttributes(self):
- """test that exception attributes are happy."""
+ # test that exception attributes are happy
try: str(u'Hello \u00E1')
except Exception, e: sampleUnicodeEncodeError = e
@@ -280,8 +280,8 @@ class ExceptionTests(unittest.TestCase):
(repr(e), checkArgName))
def testKeywordArgs(self):
- """test that builtin exception don't take keyword args,
- but user-defined subclasses can if they want"""
+ # test that builtin exception don't take keyword args,
+ # but user-defined subclasses can if they want
self.assertRaises(TypeError, BaseException, a=1)
class DerivedException(BaseException):