[py3] Made exception examination py3-compatible.
This commit is contained in:
parent
031896c510
commit
49bb72c403
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue