summaryrefslogtreecommitdiff
path: root/tests/regressiontests/bug8245/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/bug8245/tests.py')
-rw-r--r--tests/regressiontests/bug8245/tests.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/regressiontests/bug8245/tests.py b/tests/regressiontests/bug8245/tests.py
index c1cc3b595c..b7c7bcdf7c 100644
--- a/tests/regressiontests/bug8245/tests.py
+++ b/tests/regressiontests/bug8245/tests.py
@@ -18,6 +18,13 @@ class Bug8245Test(TestCase):
else:
self.fail(
'autodiscover should have raised a "Bad admin module" error.')
- # Calling autodiscover again should bail out early and not raise an
- # AlreadyRegistered error.
- admin.autodiscover()
+
+ # Calling autodiscover again should raise the very same error it did
+ # the first time, not an AlreadyRegistered error.
+ try:
+ admin.autodiscover()
+ except Exception, e:
+ self.failUnlessEqual(str(e), "Bad admin module")
+ else:
+ self.fail(
+ 'autodiscover should have raised a "Bad admin module" error.')