Use super correctly.
authorDaniel Watkins <daniel@daniel-watkins.co.uk>
Wed, 4 Dec 2013 11:27:03 +0000 (11:27 +0000)
committerDaniel Watkins <daniel@daniel-watkins.co.uk>
Wed, 4 Dec 2013 11:27:03 +0000 (11:27 +0000)
testtools/matchers/_impl.py

index 888d8ee9df0b9645c5605413b039600e0f0cd561..19a93af7ff49eba54c63da376bb5089f4ff08806 100644 (file)
@@ -114,7 +114,7 @@ class MismatchError(AssertionError):
     # characters are in the matchee, matcher or mismatch.
 
     def __init__(self, matchee, matcher, mismatch, verbose=False):
-        super(AssertionError, self).__init__(self)
+        super(MismatchError, self).__init__()
         self.matchee = matchee
         self.matcher = matcher
         self.mismatch = mismatch