From c8703189966ef9ce0c9dd300270bf442fa2bf7b6 Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Wed, 22 Feb 2012 07:14:20 +0000 Subject: [PATCH] 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 --- django/contrib/admin/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/admin/tests.py b/django/contrib/admin/tests.py index 7c4aebeca3..efe601e723 100644 --- a/django/contrib/admin/tests.py +++ b/django/contrib/admin/tests.py @@ -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