Open davidfischer-ch opened 10 years ago
I have same issue too, this is a conflict with celery. Quick dirty hack to fix it is commenting "Option('--no-color', '-C', action='store_true', default=None)," in site-packages/celery/bin/base.py
Well, it may be just like @svfat said but I believe it has something to do with the rednose plugin which also has an option --no-color. Django 1.7 seems to have a new test option --no-color (check in python manage.py help test). What version of Django do you have installed? django-nose merge all options from all plugins, and that's when the conflict occurs. It had occurred in past release such as Django 1.6 with the -p option. Look issue #123 .
The part when the options clashes seems to be in /django_nose/management/commands/test.py line 33.
class Command(Command):
option_list = Command.option_list + tuple(extra_options)
The extra_options variable comes with the options from the plugins.
@arthuralvim do you know if there is a PR for this fix?
I can confirm: the conflict is with rednose
Can someone confirm if this is still broken with nose 1.4? Please report Django version as well - the argument parsing changes from Django 1.7 to 1.8.
I can confirm that the problem still exists with nose 1.4.1 and Django 1.7.7.
Uninstalling rednose solved the problem
@lanart - thanks. I think we have a few command line parsing issues to roll into v1.4.2
I started to dive into command line parsing, and it will require bigger changes than expected. Still doable, but not for v1.4.2.
I'm postponing fixing this issue again. It has a different cause than the other command line parsing issues, and v1.4.3 is otherwise ready for release.
I'm unable to duplicate this in current code. I installed rednose
, enabled it with export NOSE_REDNOSE=1
, and ran ../manage.py test
. I got colored output. With ./manage.py test --no-color
, the color is removed. I believe the fix is in django-nose 1.4, when running against Django 1.8 or later. Django 1.7 or earlier would still be broken.
I also run celery in another project, and haven't encountered an error.
Can someone hitting this issue please try it again? @andreinl ?
Tested with Django from GitHub commit 20da67d325190ec131ae5da2ae415335ecbeae24
Packages: