operator.
"""
if first != second:
- raise self.failureException, (msg or '%s != %s' % (first, second))
+ raise self.failureException, \
+ (msg or '%s != %s' % (`first`, `second`))
def failIfEqual(self, first, second, msg=None):
"""Fail if the two objects are equal as determined by the '=='
operator.
"""
if first == second:
- raise self.failureException, (msg or '%s == %s' % (first, second))
+ raise self.failureException, \
+ (msg or '%s == %s' % (`first`, `second`))
assertEqual = assertEquals = failUnlessEqual
self.stream.writeln("ERROR")
elif self.dots:
self.stream.write('E')
- if err[0] is KeyboardInterrupt:
- self.shouldStop = 1
def addFailure(self, test, err):
TestResult.addFailure(self, test, err)