Kaydet (Commit) 49bb72c4 authored tarafından Karen Tracey's avatar Karen Tracey

[py3] Made exception examination py3-compatible.

üst 031896c5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment