Closed dbrgn closed 11 years ago
I also tried it with Django 1.4 and the same error occured... So it's probably an error on my side :/
I found the issue.
I have the unicode_literals
future enabled in my settings.py, therefore test_path[-1]
which gets passed to __import__
in django/test/utils.py is a unicode string and not a bytestring. This breaks the __import__
call.
I'll report it to the Django team.
FYI, see also https://bugs.python.org/issue21720.
I'm using Django 1.5 on Python 2.7.
Using the normal Django test runner, everything works. Is this error related to django-discover-runner?