summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-02-23 15:42:59 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2011-02-23 15:42:59 -0800
commit78eddce564cccf0d9be19b303cbc122966f5fa71 (patch)
treea8d1b58ab67fa18b0be3ee52d28a4bc557535809
parentc27c19ea316b343f1623a7c1bf21c53cd426603b (diff)
downloadnova-78eddce564cccf0d9be19b303cbc122966f5fa71.tar.gz
nova-78eddce564cccf0d9be19b303cbc122966f5fa71.tar.xz
nova-78eddce564cccf0d9be19b303cbc122966f5fa71.zip
added comments about where code came from
-rw-r--r--run_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py
index eef0120bc..8025548e5 100644
--- a/run_tests.py
+++ b/run_tests.py
@@ -198,6 +198,7 @@ class NovaTestResult(result.TextTestResult):
def getDescription(self, test):
return str(test)
+ # NOTE(vish): copied from unittest with edit to add color
def addSuccess(self, test):
unittest.TestResult.addSuccess(self, test)
if self.showAll:
@@ -207,6 +208,7 @@ class NovaTestResult(result.TextTestResult):
self.stream.write('.')
self.stream.flush()
+ # NOTE(vish): copied from unittest with edit to add color
def addFailure(self, test, err):
unittest.TestResult.addFailure(self, test, err)
if self.showAll:
@@ -216,6 +218,7 @@ class NovaTestResult(result.TextTestResult):
self.stream.write('F')
self.stream.flush()
+ # NOTE(vish): copied from nose with edit to add color
def addError(self, test, err):
"""Overrides normal addError to add support for
errorClasses. If the exception is a registered class, the