Skip to content

Instantly share code, notes, and snippets.

@veatch
Created September 5, 2013 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veatch/6455281 to your computer and use it in GitHub Desktop.
Save veatch/6455281 to your computer and use it in GitHub Desktop.
mock-django test failure 1
py26-1.5 inst-nodeps: /Users/jveatch/Downloads/mock-django-master/.tox/dist/mock-django-0.6.5.zip
py26-1.5 runtests: commands[0] | /Users/jveatch/Downloads/mock-django-master/.tox/py26-1.5/bin/python runtests.py
E
======================================================================
ERROR: Failure: TypeError (Error when calling the metaclass bases
__init__() keywords must be strings)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/jveatch/Downloads/mock-django-master/.tox/py26-1.5/lib/python2.6/site-packages/nose/loader.py", line 413, in loadTestsFromName
addr.filename, addr.module)
File "/Users/jveatch/Downloads/mock-django-master/.tox/py26-1.5/lib/python2.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Users/jveatch/Downloads/mock-django-master/.tox/py26-1.5/lib/python2.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/jveatch/Downloads/mock-django-master/mock_django/__init__.py", line 9, in <module>
from .http import *
File "/Users/jveatch/Downloads/mock-django-master/mock_django/http.py", line 9, in <module>
from django.contrib.auth.models import AnonymousUser
File "/Users/jveatch/Downloads/mock-django-master/.tox/py26-1.5/lib/python2.6/site-packages/django/contrib/auth/models.py", line 21, in <module>
from django.contrib.contenttypes.models import ContentType
File "/Users/jveatch/Downloads/mock-django-master/.tox/py26-1.5/lib/python2.6/site-packages/django/contrib/contenttypes/models.py", line 127, in <module>
class ContentType(models.Model):
File "/Users/jveatch/Downloads/mock-django-master/.tox/py26-1.5/lib/python2.6/site-packages/django/db/models/base.py", line 97, in __new__
new_class.add_to_class('_meta', Options(meta, **kwargs))
TypeError: Error when calling the metaclass bases
__init__() keywords must be strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment