mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-21 15:52:28 +00:00
remove pytest warning errors
In the previous commit I naively configured pytest to treat any warning as an error, excep for numpy pendingdeprecationwarning errors, This causes the build in py2.7 to fail, due to some warnings from nltk.
This commit is contained in:
parent
c090501534
commit
d145a852e7
@ -17,7 +17,7 @@ import subprocess
|
|||||||
import importlib
|
import importlib
|
||||||
import yaml
|
import yaml
|
||||||
import threading
|
import threading
|
||||||
import nltk
|
from nltk import download
|
||||||
|
|
||||||
from .. import models, utils
|
from .. import models, utils
|
||||||
from .. import api
|
from .. import api
|
||||||
@ -195,7 +195,7 @@ class Plugin(with_metaclass(PluginMeta, models.Plugin)):
|
|||||||
try:
|
try:
|
||||||
request = models.Response()
|
request = models.Response()
|
||||||
parameters = api.parse_params(given_parameters,
|
parameters = api.parse_params(given_parameters,
|
||||||
self.extra_params)
|
self.extra_params)
|
||||||
request.entries = [
|
request.entries = [
|
||||||
entry,
|
entry,
|
||||||
]
|
]
|
||||||
@ -574,7 +574,7 @@ def install_deps(*plugins):
|
|||||||
"Dependencies not properly installed: {}".format(pip_args))
|
"Dependencies not properly installed: {}".format(pip_args))
|
||||||
nltk_resources |= set(info.get('nltk_resources', []))
|
nltk_resources |= set(info.get('nltk_resources', []))
|
||||||
|
|
||||||
installed |= nltk.download(list(nltk_resources))
|
installed |= download(list(nltk_resources))
|
||||||
return installed
|
return installed
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@ universal=1
|
|||||||
[tool:pytest]
|
[tool:pytest]
|
||||||
addopts = --cov=senpy --cov-report term-missing
|
addopts = --cov=senpy --cov-report term-missing
|
||||||
filterwarnings =
|
filterwarnings =
|
||||||
error
|
|
||||||
ignore:the matrix subclass:PendingDeprecationWarning
|
ignore:the matrix subclass:PendingDeprecationWarning
|
||||||
[coverage:report]
|
[coverage:report]
|
||||||
omit = senpy/__main__.py
|
omit = senpy/__main__.py
|
||||||
|
Loading…
Reference in New Issue
Block a user