From 1e1b1dc864b5268404e4c1a3d619d1dc2de5684c Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 17 Jun 2021 17:07:26 -0300 Subject: [PATCH] tests: filtering some wrong warnings --- tests/gems/arch/test_pacman.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/gems/arch/test_pacman.py b/tests/gems/arch/test_pacman.py index ea7e2c25..f339313d 100644 --- a/tests/gems/arch/test_pacman.py +++ b/tests/gems/arch/test_pacman.py @@ -1,4 +1,5 @@ import os +import warnings from unittest import TestCase from bauh.gems.arch import pacman @@ -8,6 +9,10 @@ FILE_DIR = os.path.dirname(os.path.abspath(__file__)) class PacmanTest(TestCase): + @classmethod + def setUpClass(cls): + warnings.filterwarnings('ignore') + def test_list_ignored_packages(self): ignored = pacman.list_ignored_packages(FILE_DIR + '/resources/pacman_ign_pkgs.conf')