mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-04 05:24:45 +00:00
Ignore ResourceWarnings
This switches Python back to it's default behaviour. Elasticsearch creates a lot of noise with this warning switched on, hiding warnings that may be important.
This commit is contained in:
parent
0e7b92971a
commit
f4706b8208
1 changed files with 0 additions and 4 deletions
|
|
@ -17,10 +17,6 @@ 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 a new issue