From 6d57f2efd2890cbfad4be92885f128a5219c884e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Fri, 10 Jan 2020 14:50:30 +0100 Subject: [PATCH 1/2] Filter out third-party warnings when running tests --- pytest.ini | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pytest.ini diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 00000000..45c9a1a6 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,7 @@ +[pytest] +filterwarnings = + ; https://github.com/RDFLib/pyrdfa3/issues/31 + ignore:the imp module is deprecated:DeprecationWarning + ; https://github.com/html5lib/html5lib-python/issues/402 + ; https://bugs.launchpad.net/beautifulsoup/+bug/1847592 + ignore:Using or importing the ABCs:DeprecationWarning From 52f45ec28822732dc2c4448fbd54e45e1e7894bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Fri, 10 Jan 2020 14:54:01 +0100 Subject: [PATCH 2/2] Ignore the imp PendingDeprecationWarning as well --- pytest.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/pytest.ini b/pytest.ini index 45c9a1a6..708407bd 100644 --- a/pytest.ini +++ b/pytest.ini @@ -2,6 +2,7 @@ filterwarnings = ; https://github.com/RDFLib/pyrdfa3/issues/31 ignore:the imp module is deprecated:DeprecationWarning + ignore:the imp module is deprecated:PendingDeprecationWarning ; https://github.com/html5lib/html5lib-python/issues/402 ; https://bugs.launchpad.net/beautifulsoup/+bug/1847592 ignore:Using or importing the ABCs:DeprecationWarning