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:
commit
aea724dc85
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user