Permalink
Browse files

[py3] Made exception examination py3-compatible.

  • Loading branch information...
1 parent 031896c commit 49bb72c403b24b58d8d8067dcd945f57878df9f0 @kmtracey kmtracey committed Aug 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/templates/tests.py
@@ -46,7 +46,7 @@
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

0 comments on commit 49bb72c

Please sign in to comment.