Skip to content
Browse files

[py3] Made exception examination py3-compatible.

  • Loading branch information...
1 parent 031896c commit 49bb72c403b24b58d8d8067dcd945f57878df9f0 @kmtracey kmtracey committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/templates/tests.py
View
2 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.
Something went wrong with that request. Please try again.