summaryrefslogtreecommitdiffstats
path: root/Lib/unittest.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-22 18:14:15 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-22 18:14:15 (GMT)
commitefef5dae94dd71616d4ae6978ff54e89278c1182 (patch)
tree522750ee0258c3b6460e041d220ec09d12e87b09 /Lib/unittest.py
parenta219b411af0def6473799b9d71448e9d4d0f6eb3 (diff)
downloadcpython-efef5dae94dd71616d4ae6978ff54e89278c1182.zip
cpython-efef5dae94dd71616d4ae6978ff54e89278c1182.tar.gz
cpython-efef5dae94dd71616d4ae6978ff54e89278c1182.tar.bz2
A few formatting nits:
Don't put paren in column 0 (to please font-lock mode). Put space after comma in argument list.
Diffstat (limited to 'Lib/unittest.py')
-rw-r--r--Lib/unittest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/unittest.py b/Lib/unittest.py
index da6d9b0..7de4d6c 100644
--- a/Lib/unittest.py
+++ b/Lib/unittest.py
@@ -6,7 +6,7 @@ Smalltalk testing framework.
This module contains the core framework classes that form the basis of
specific test cases and suites (TestCase, TestSuite etc.), and also a
text-based utility class for running the tests and reporting the results
-(TextTestRunner).
+ (TextTestRunner).
Simple usage:
@@ -203,7 +203,7 @@ class TestCase:
try:
self.setUp()
except:
- result.addError(self,self.__exc_info())
+ result.addError(self, self.__exc_info())
return
ok = 0
@@ -211,14 +211,14 @@ class TestCase:
testMethod()
ok = 1
except self.failureException, e:
- result.addFailure(self,self.__exc_info())
+ result.addFailure(self, self.__exc_info())
except:
- result.addError(self,self.__exc_info())
+ result.addError(self, self.__exc_info())
try:
self.tearDown()
except:
- result.addError(self,self.__exc_info())
+ result.addError(self, self.__exc_info())
ok = 0
if ok: result.addSuccess(self)
finally: