From 1419c12e7429dec6d19b1acd9feb52b3d9ef6989 Mon Sep 17 00:00:00 2001 From: Brian Haley Date: Fri, 17 May 2019 14:38:18 -0400 Subject: [PATCH] Fix pep8 E1111 warning in test_securitygroup.py 'res' is never used after the call to self._delete(), just like the line below it, so don't save it. Trivialfix Change-Id: Iaaba249cfd658afe3cf0ea8543a9f001cc7b8908 --- neutron/tests/unit/extensions/test_securitygroup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neutron/tests/unit/extensions/test_securitygroup.py b/neutron/tests/unit/extensions/test_securitygroup.py index b0d56b7bc73..04ff3274e55 100644 --- a/neutron/tests/unit/extensions/test_securitygroup.py +++ b/neutron/tests/unit/extensions/test_securitygroup.py @@ -1608,9 +1608,9 @@ class TestSecurityGroups(SecurityGroupDBTestCase): self.assertEqual(port['port'][ext_sg.SECURITYGROUPS][0], sg['security_group']['id']) # try to delete security group that's in use - res = self._delete('security-groups', - sg['security_group']['id'], - webob.exc.HTTPConflict.code) + self._delete('security-groups', + sg['security_group']['id'], + webob.exc.HTTPConflict.code) # delete the blocking port self._delete('ports', port['port']['id'])