From d145a852e7857784ba92efc556bb9e513ad5374b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Fri, 7 Dec 2018 18:02:01 +0100 Subject: [PATCH] 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. --- senpy/plugins/__init__.py | 6 +++--- setup.cfg | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/senpy/plugins/__init__.py b/senpy/plugins/__init__.py index 361509a..70f5bdd 100644 --- a/senpy/plugins/__init__.py +++ b/senpy/plugins/__init__.py @@ -17,7 +17,7 @@ import subprocess import importlib import yaml import threading -import nltk +from nltk import download from .. import models, utils from .. import api @@ -195,7 +195,7 @@ class Plugin(with_metaclass(PluginMeta, models.Plugin)): try: request = models.Response() parameters = api.parse_params(given_parameters, - self.extra_params) + self.extra_params) request.entries = [ entry, ] @@ -574,7 +574,7 @@ def install_deps(*plugins): "Dependencies not properly installed: {}".format(pip_args)) nltk_resources |= set(info.get('nltk_resources', [])) - installed |= nltk.download(list(nltk_resources)) + installed |= download(list(nltk_resources)) return installed diff --git a/setup.cfg b/setup.cfg index 3ac3a0f..b651728 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,7 +13,6 @@ universal=1 [tool:pytest] addopts = --cov=senpy --cov-report term-missing filterwarnings = - error ignore:the matrix subclass:PendingDeprecationWarning [coverage:report] omit = senpy/__main__.py