mirror of
https://github.com/django/django.git
synced 2025-01-27 02:29:55 +00:00
[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…
x
Reference in New Issue
Block a user