From 623b8c99fe4f9ecf4d12749eb76791e36bc4fcc2 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 12 Nov 2015 17:15:12 -0500 Subject: [PATCH] [1.9.x] Fixed SyntaxWarning in a user_commands test. --- tests/user_commands/management/commands/optparse_cmd.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/user_commands/management/commands/optparse_cmd.py b/tests/user_commands/management/commands/optparse_cmd.py index 09de44b200..fbbb612f87 100644 --- a/tests/user_commands/management/commands/optparse_cmd.py +++ b/tests/user_commands/management/commands/optparse_cmd.py @@ -16,7 +16,5 @@ class Command(BaseCommand): options["example"] # BaseCommand default option is available options['verbosity'] - assert ( - isinstance(options['verbosity'], int), "verbosity option is not int, but %s" % type(options['verbosity']) - ) + assert isinstance(options['verbosity'], int) self.stdout.write("All right, let's dance %s." % options["style"])