Commits

Thomas Waldmann committed b7241c7

use more new-style classes

Comments (0)

Files changed (3)

MoinMoin/_tests/test_error.py

 
     def testCreateWithObject(self):
         """ error: create with any object """
-        class Foo:
+
+        class Foo(object):
             def __unicode__(self):
                 return u'טעות'
+
             def __str__(self):
                 return 'טעות'
 

MoinMoin/auth/_tests/test_http.py

 
 class TestHTTPAuthMoin(object):
     """ Test: HTTPAuthMoin """
-    class Auth:
+
+    class Auth(object):
         def __init__(self):
             self.username = 'ValidUser'
             self.password = 'test_pass'

MoinMoin/security/_tests/test_textcha.py

         cfg.secrets.pop('security/textcha')
         flaskg.user.profile[LOCALE] = None
 
-    class Element:
+    class Element(object):
         def __init__(self):
             self.parent = None
             self.value = 'Good Answer'