Skip to content

Commit

Permalink
Exposing deprecation warning message to failing deprecation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris May committed Oct 31, 2019
1 parent 1a82e75 commit 1ec2af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def runtests():
execute_from_command_line(argv)
for warning in w:
assert not isinstance(warning.message, RemovedInWagtail27Warning), \
'These tests raised a RemovedInWagtail27Warning.'
f'These tests raised a RemovedInWagtail27Warning. {warning.message}'
finally:
from wagtailmedia.tests.settings import STATIC_ROOT, MEDIA_ROOT
shutil.rmtree(STATIC_ROOT, ignore_errors=True)
Expand Down

0 comments on commit 1ec2af1

Please # to comment.