Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.8 Compatibility #2

Open
kevbo opened this issue Apr 3, 2015 · 0 comments
Open

Django 1.8 Compatibility #2

kevbo opened this issue Apr 3, 2015 · 0 comments

Comments

@kevbo
Copy link

kevbo commented Apr 3, 2015

Per the release notes, The module django.test.simple and the class django.test.simple.DjangoTestSuiteRunner are removed.

Which causes the following failure:

/Users/kboers/src/firebolt/env/bin/python manage.py test --settings=firebolt.settings.testing -- 
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/kboers/src/firebolt/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/Users/kboers/src/firebolt/env/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/kboers/src/firebolt/env/lib/python2.7/site-packages/django/core/management/commands/test.py", line 30, in run_from_argv
    super(Command, self).run_from_argv(argv)
  File "/Users/kboers/src/firebolt/env/lib/python2.7/site-packages/django/core/management/base.py", line 378, in run_from_argv
    parser = self.create_parser(argv[0], argv[1])
  File "/Users/kboers/src/firebolt/env/lib/python2.7/site-packages/django/core/management/base.py", line 351, in create_parser
    self.add_arguments(parser)
  File "/Users/kboers/src/firebolt/env/lib/python2.7/site-packages/django/core/management/commands/test.py", line 52, in add_arguments
    test_runner_class = get_runner(settings, self.test_runner)
  File "/Users/kboers/src/firebolt/env/lib/python2.7/site-packages/django/test/utils.py", line 152, in get_runner
    test_module = __import__(test_module_name, {}, {}, force_str(test_path[-1]))
  File "/Users/kboers/src/firebolt/env/lib/python2.7/site-packages/djnose2/__init__.py", line 1, in <module>
    from djnose2.runner import TestRunner
  File "/Users/kboers/src/firebolt/env/lib/python2.7/site-packages/djnose2/runner.py", line 6, in <module>
    from django.test import simple
ImportError: cannot import name simple
make: *** [test] Error 1
BoersMBA:firebolt kboers [master] $ 
nikolas added a commit to nikolas/django-nose2 that referenced this issue Apr 6, 2015
This is the same way that django-nose imports DiscoverRunner and
falls back to DjangoTestSuiteRunner on older versions of django.

refs jpellerin#2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant