Stopped hiding the original exception's message when a selenium driver's instantiation fails.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Julien Phalip 2012-02-22 07:14:20 +00:00
parent a65eed3942
commit c870318996
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@ class AdminSeleniumWebDriverTestCase(LiveServerTestCase):
mod = import_module(module)
WebDriver = getattr(mod, attr)
cls.selenium = WebDriver()
except Exception:
except Exception, e:
raise SkipTest('Selenium webdriver "%s" not installed or not '
'operational.' % cls.webdriver_class)
'operational: %s' % (cls.webdriver_class, str(e)))
super(AdminSeleniumWebDriverTestCase, cls).setUpClass()
@classmethod