Fix pep8 violations in stress tests
This fixes pep8 failures that occur in the stress tests.
These included 3 types of failures: TEMPEST N301, N306, N201
Change-Id: I54211bea03430de4ad821096eaa5264afc4f22a3
diff --git a/stress/test_floating_ips.py b/stress/test_floating_ips.py
index 302385a..fcc5904 100755
--- a/stress/test_floating_ips.py
+++ b/stress/test_floating_ips.py
@@ -12,16 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
-# system imports
-import random
-import time
-import telnetlib
import logging
+import random
+import telnetlib
+import time
-# local imports
-import test_case
import pending_action
+import test_case
class TestChangeFloatingIp(test_case.StressTestCase):
@@ -85,7 +82,7 @@
(self.floating_ip.address, self.elapsed()))
self.floating_ip.change_pending = False
return True
- except:
+ except Exception:
if not self.add:
self._logger.info('%s removed [%.1f secs elapsed]' %
(self.floating_ip.address, self.elapsed()))