This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michael.foord
Recipients michael.foord, ncoghlan
Date 2012-06-07.08:56:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339059404.28.0.109258013217.issue15024@psf.upfronthosting.co.za>
In-reply-to
Content
Why not just instantiate a TestCase instance and use that?

>>> from unittest import TestCase
>>> t = TestCase()
>>> t.assertEqual('foo', 'bar')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/compile/py3k-cpython/Lib/unittest/case.py", line 642, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/compile/py3k-cpython/Lib/unittest/case.py", line 1021, in assertMultiLineEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/compile/py3k-cpython/Lib/unittest/case.py", line 509, in fail
    raise self.failureException(msg)
AssertionError: 'foo' != 'bar'
- foo
+ bar
History
Date User Action Args
2012-06-07 08:56:44michael.foordsetrecipients: + michael.foord, ncoghlan
2012-06-07 08:56:44michael.foordsetmessageid: <1339059404.28.0.109258013217.issue15024@psf.upfronthosting.co.za>
2012-06-07 08:56:43michael.foordlinkissue15024 messages
2012-06-07 08:56:43michael.foordcreate