0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

Merge pull request #1294 from kaedroho/show-resource-warnings

Show ResourceWarnings when running tests
This commit is contained in:
Karl Hobley 2015-05-13 10:33:41 +01:00
commit aea724dc85

View File

@ -17,6 +17,10 @@ def runtests():
warnings.simplefilter('default', DeprecationWarning)
warnings.simplefilter('default', PendingDeprecationWarning)
# Don't ignore ResourceWarnings (Python 3 only)
if sys.version_info >= (3, 0):
warnings.simplefilter('default', ResourceWarning)
argv = sys.argv[:1] + ['test'] + sys.argv[1:]
try:
execute_from_command_line(argv)