Tuesday, October 22, 2013

Re: Django 1.6b4 fails to run tests with runner test.simple trying to import TransRealMixin

Matthieu,

On Tue, Oct 22, 2013 at 1:22 PM, Matthieu Rigal <matt.rigal@googlemail.com> wrote:
> Hi all,
>
> I know that TransRealMixin already was a problem in the past and I thought
> it was "fixed"in the meaning that it was incorporated in the project.
> (https://github.com/django/django/pull/1147)
>
> I tried to run my actual tests (developed on 1.4.x) on the 1.6b4 and here is
> what comes out when I use the following parameter
>
> TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner'
>
>
> Traceback (most recent call last):
>   File "manage.py", line 15, in <module>
>     execute_from_command_line(sys.argv)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/__init__.py",
> line 397, in execute_from_command_line
>     utility.execute()
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/__init__.py",
> line 390, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/commands/test.py",
> line 50, in run_from_argv
>     super(Command, self).run_from_argv(argv)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/base.py",
> line 240, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/commands/test.py",
> line 71, in execute
>     super(Command, self).execute(*args, **options)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/base.py",
> line 283, in execute
>     output = self.handle(*args, **options)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/lib/python2.7/site-packages/south/management/commands/test.py",
> line 8, in handle
>     super(Command, self).handle(*args, **kwargs)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/core/management/commands/test.py",
> line 88, in handle
>     failures = test_runner.run_tests(test_labels)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/test/runner.py",
> line 144, in run_tests
>     suite = self.build_suite(test_labels, extra_tests)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/test/simple.py",
> line 247, in build_suite
>     suite.addTest(build_suite(app))
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/test/simple.py",
> line 149, in build_suite
>     test_module = get_tests(app_module)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/test/simple.py",
> line 101, in get_tests
>     test_module = import_module('.'.join(prefix + [TEST_MODULE]))
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/utils/importlib.py",
> line 35, in import_module
>     __import__(name)
>   File
> "/Users/mrigal/dev/_virtualenvs/myo_1.6/src/django/django/contrib/humanize/tests.py",
> line 22, in <module>
>     from i18n import TransRealMixin
> ImportError: cannot import name TransRealMixin
>

Could you give us more information about how to reproduce this? i.e. what tests are you trying to run? etc.

Thanks.

--
Ramiro Morales
@ramiromorales

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO7PdF_L4GeZwmYykk%2BK3vFTWDbv-BH4JjRNQuXFZdT2ZrK2yg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate