diff options
| author | Chandrakant Kumar <k.03chandra@gmail.com> | 2017-06-16 08:47:17 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-16 11:06:01 -0400 |
| commit | f6800a081afa27eaee9229ad5ccfd86c6c61496d (patch) | |
| tree | 92a28b31e95e482015427f7236609deb7058032f /django | |
| parent | 874b1f2cac7b79597ce87cc244b7cefc5c5cd821 (diff) | |
Refs #27787 -- Corrected or removed invalid call_command() options.
Diffstat (limited to 'django')
| -rw-r--r-- | django/test/testcases.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index cc1da67fb2..6492144a2e 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -988,15 +988,11 @@ class TestCase(TransactionTestCase): if cls.fixtures: for db_name in cls._databases_names(include_mirrors=False): - try: - call_command('loaddata', *cls.fixtures, **{ - 'verbosity': 0, - 'commit': False, - 'database': db_name, - }) - except Exception: - cls._rollback_atomics(cls.cls_atomics) - raise + try: + call_command('loaddata', *cls.fixtures, **{'verbosity': 0, 'database': db_name}) + except Exception: + cls._rollback_atomics(cls.cls_atomics) + raise try: cls.setUpTestData() except Exception: |
