Skip to content

Commit 623ce0e

Browse files
committed
Merged in [12378] from rjsparks@nostrum.com:
Change the lines saying that a test has failed to make it easier to cut-paste to run the failed test again. - Legacy-Id: 12386 Note: SVN reference [12378] has been migrated to Git commit be51bc2
2 parents 89294a5 + be51bc2 commit 623ce0e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

ietf/utils/test_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import ietf
6565
import ietf.utils.mail
6666
from ietf.utils.test_smtpserver import SMTPTestServerDriver
67+
from ietf.utils.test_utils import TestCase
6768

6869
loaded_templates = set()
6970
visited_urls = set()
@@ -232,7 +233,7 @@ def report(self):
232233
return result
233234

234235

235-
class CoverageTest(unittest.TestCase):
236+
class CoverageTest(TestCase):
236237

237238
def __init__(self, test_runner=None, **kwargs):
238239
self.runner = test_runner

ietf/utils/test_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from datetime import datetime
4040
import urllib2 as urllib
4141
from difflib import unified_diff
42+
from unittest.util import strclass
4243

4344
import django.test
4445
from django.db import connection
@@ -295,3 +296,5 @@ def assertValidHTMLResponse(self, resp):
295296
self.assertTrue(resp['Content-Type'].startswith('text/html'))
296297
self.assertValidHTML(resp.content)
297298

299+
def __str__(self):
300+
return "%s (%s.%s)" % (self._testMethodName, strclass(self.__class__),self._testMethodName)

0 commit comments

Comments
 (0)