mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
A few formatting nits:
Don't put paren in column 0 (to please font-lock mode). Put space after comma in argument list.
This commit is contained in:
parent
a219b411af
commit
efef5dae94
1 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ Smalltalk testing framework.
|
||||||
This module contains the core framework classes that form the basis of
|
This module contains the core framework classes that form the basis of
|
||||||
specific test cases and suites (TestCase, TestSuite etc.), and also a
|
specific test cases and suites (TestCase, TestSuite etc.), and also a
|
||||||
text-based utility class for running the tests and reporting the results
|
text-based utility class for running the tests and reporting the results
|
||||||
(TextTestRunner).
|
(TextTestRunner).
|
||||||
|
|
||||||
Simple usage:
|
Simple usage:
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ class TestCase:
|
||||||
try:
|
try:
|
||||||
self.setUp()
|
self.setUp()
|
||||||
except:
|
except:
|
||||||
result.addError(self,self.__exc_info())
|
result.addError(self, self.__exc_info())
|
||||||
return
|
return
|
||||||
|
|
||||||
ok = 0
|
ok = 0
|
||||||
|
@ -211,14 +211,14 @@ class TestCase:
|
||||||
testMethod()
|
testMethod()
|
||||||
ok = 1
|
ok = 1
|
||||||
except self.failureException, e:
|
except self.failureException, e:
|
||||||
result.addFailure(self,self.__exc_info())
|
result.addFailure(self, self.__exc_info())
|
||||||
except:
|
except:
|
||||||
result.addError(self,self.__exc_info())
|
result.addError(self, self.__exc_info())
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.tearDown()
|
self.tearDown()
|
||||||
except:
|
except:
|
||||||
result.addError(self,self.__exc_info())
|
result.addError(self, self.__exc_info())
|
||||||
ok = 0
|
ok = 0
|
||||||
if ok: result.addSuccess(self)
|
if ok: result.addSuccess(self)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue