diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2012-08-12 12:08:58 -0400 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2012-08-12 12:08:58 -0400 |
| commit | 49bb72c403b24b58d8d8067dcd945f57878df9f0 (patch) | |
| tree | 78ca2bf2b54f9a42a09c6ee385b6cfd2783297b4 | |
| parent | 031896c5101de83bca65e872fb4a91c15f55a42e (diff) | |
[py3] Made exception examination py3-compatible.
| -rw-r--r-- | tests/regressiontests/templates/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/templates/tests.py b/tests/regressiontests/templates/tests.py index a21b7ff323..6ae5af56af 100644 --- a/tests/regressiontests/templates/tests.py +++ b/tests/regressiontests/templates/tests.py @@ -46,7 +46,7 @@ from .response import (TemplateResponseTest, CacheMiddlewareTest, try: from .loaders import RenderToStringTest, EggLoaderTest except ImportError as e: - if "pkg_resources" in e.message: + if "pkg_resources" in e.args[0]: pass # If setuptools isn't installed, that's fine. Just move on. else: raise |
