1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed unnecessary capturing of stdout in test_makemigrations_non_interactive_not_null_addition.

This commit is contained in:
François Freitag 2020-04-25 18:53:53 +00:00 committed by GitHub
parent a92cc84b4a
commit da606513db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1193,10 +1193,9 @@ class MakeMigrationsTests(MigrationTestBase):
class Meta:
app_label = "migrations"
out = io.StringIO()
with self.assertRaises(SystemExit):
with self.temporary_migration_module(module="migrations.test_migrations_no_default"):
call_command("makemigrations", "migrations", interactive=False, stdout=out)
call_command("makemigrations", "migrations", interactive=False)
def test_makemigrations_non_interactive_not_null_alteration(self):
"""