Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[py3] Made exception examination py3-compatible.

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