From 891f83afa24dc797b02f371bc779dbf7ec11d6cc Mon Sep 17 00:00:00 2001 From: Andreas Mueller Date: Wed, 24 Jul 2019 15:16:38 -0400 Subject: [PATCH] make ci log more readable, catch matrix subclass warning --- openml/testing.py | 3 ++- setup.cfg | 17 +++-------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/openml/testing.py b/openml/testing.py index 09413401c..dad1aa9f5 100644 --- a/openml/testing.py +++ b/openml/testing.py @@ -221,7 +221,8 @@ def _cleanup_fixture(self): # deleting actual entry from tracker TestBase._delete_entity_from_tracker(entity_type, entity) except Exception as e: - TestBase.logger.warn("Cannot delete ({},{}): {}".format(entity_type, entity, e)) + TestBase.logger.warning("Cannot delete ({},{}): {}".format( + entity_type, entity, e)) TestBase.logger.info("End of cleanup_fixture from {}".format(self.__class__)) def _get_sentinel(self, sentinel=None): diff --git a/setup.cfg b/setup.cfg index fac02f0f9..726c8fa73 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,17 +1,6 @@ [metadata] description-file = README.md -[nosetests] -# nosetests skips test files with the executable bit by default -# which can silently hide failing tests. -exe = 1 -cover-html = 1 -cover-html-dir = coverage -cover-package = openml - -detailed-errors = 1 -with-doctest = 1 -doctest-tests = 1 -doctest-extension = rst -doctest-fixtures = _fixture -#doctest-options = +ELLIPSIS,+NORMALIZE_WHITESPACE +[tool:pytest] +filterwarnings = + ignore:the matrix subclass:PendingDeprecationWarning