From 49bb72c403b24b58d8d8067dcd945f57878df9f0 Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Sun, 12 Aug 2012 12:08:58 -0400 Subject: [PATCH] [py3] Made exception examination py3-compatible. --- tests/regressiontests/templates/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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