Tests run even if no progress installed
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 12 Feb 2013 17:19:11 +0000 (19:19 +0200)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Tue, 12 Feb 2013 17:19:11 +0000 (19:19 +0200)
kamaki/clients/tests/__init__.py

index df54b3e..5254bbb 100644 (file)
@@ -35,7 +35,6 @@ import inspect
 from unittest import TestCase, TestSuite, TextTestRunner
 from argparse import ArgumentParser
 from sys import stdout
-from progress.bar import ShadyBar
 
 from kamaki.cli.config import Config
 from kamaki.cli.utils import spiner
@@ -88,6 +87,7 @@ class Generic(TestCase):
     def _safe_progress_bar(self, msg):
         """Try to get a progress bar, but do not raise errors"""
         try:
+            from progress.bar import ShadyBar
             wait_bar = ShadyBar(msg)
 
             def wait_gen(n):