Use new-style classes. The old-style classes are deprecated in Python 3.
authorBerker Peksag <berker.peksag@gmail.com>
Sun, 8 Jun 2014 05:20:17 +0000 (08:20 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 8 Jun 2014 05:20:17 +0000 (08:20 +0300)
mediagoblin/tests/test_storage.py

index 9b96ecbe458fe1c5aa16ef21e7c910464c953280..5cb1672bbaddef57c831c878930996445962c840 100644 (file)
@@ -47,7 +47,7 @@ def test_clean_listy_filepath():
         storage.clean_listy_filepath(['../../', 'linooks.jpg'])
 
 
-class FakeStorageSystem():
+class FakeStorageSystem(object):
     def __init__(self, foobie, blech, **kwargs):
         self.foobie = foobie
         self.blech = blech
@@ -81,7 +81,7 @@ def test_storage_system_from_config():
     assert this_storage.foobie == 'eiboof'
     assert this_storage.blech == 'hcelb'
     assert six.text_type(this_storage.__class__) == \
-        u'mediagoblin.tests.test_storage.FakeStorageSystem'
+        u"<class 'mediagoblin.tests.test_storage.FakeStorageSystem'>"
 
 
 ##########################