#21075: django crashes with sys.exit(1) when management.call_command is used with unittest -------------------------------------+------------------------------------- Reporter: nahumoz@… | Owner: nobody Type: Bug | Status: new Component: Core | Version: 1.5 (Serialization) | Resolution: Severity: Normal | Triage Stage: Keywords: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by anonymous):
* status: closed => new * resolution: invalid => Comment: Sorry, this is still an issue ... it does not crash with sys.exit(1). But the documentation is just lacking and your example does not work: {{{ $ grep contenttypes models.py management.call_command('dumpdata', 'TimePortal', exclude='django.contrib.contenttypes', indent=4, stdout=j) [21] ozn@deboz:~/software/zeitport/zeitportal/TimePortal [buggy] $ python ../manage.py test TimePortal Creating test database for alias 'default'... CommandError: Unknown app in excludes: d }}} tried here with `exclude='django.contrib.contenttypes'` because `exclude='contenttypes'` gave the error: {{{ CommandError: Unknown app in excludes: d }}} with `exclude='natural'` because `natural` gave the error: {{{ CommandError: Unknown application: natural }}} Could you please check this? -- Ticket URL: <https://code.djangoproject.com/ticket/21075#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/075.3ab05cc735e3c686aa200dc6134301e6%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.