mirror of
https://github.com/django/django.git
synced 2025-12-11 11:50:49 +00:00
Moved a line outside of try/except to prevent an error in finally.
Thanks Ian Foote.
This commit is contained in:
parent
fbb684d95e
commit
9a46836a0c
1 changed files with 1 additions and 1 deletions
|
|
@ -474,9 +474,9 @@ class MakeMigrationsTests(MigrationTestBase):
|
||||||
old_input = questioner.input
|
old_input = questioner.input
|
||||||
questioner.input = lambda _: "N"
|
questioner.input = lambda _: "N"
|
||||||
stdout = six.StringIO()
|
stdout = six.StringIO()
|
||||||
|
merge_file = os.path.join(self.test_dir, 'test_migrations_conflict', '0003_merge.py')
|
||||||
try:
|
try:
|
||||||
call_command("makemigrations", "migrations", merge=True, stdout=stdout)
|
call_command("makemigrations", "migrations", merge=True, stdout=stdout)
|
||||||
merge_file = os.path.join(self.test_dir, 'test_migrations_conflict', '0003_merge.py')
|
|
||||||
# This will fail if interactive is False by default
|
# This will fail if interactive is False by default
|
||||||
self.assertFalse(os.path.exists(merge_file))
|
self.assertFalse(os.path.exists(merge_file))
|
||||||
except CommandError:
|
except CommandError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue