mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
tests: filtering some wrong warnings
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
|
import warnings
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from bauh.gems.arch import pacman
|
from bauh.gems.arch import pacman
|
||||||
@@ -8,6 +9,10 @@ FILE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|||||||
|
|
||||||
class PacmanTest(TestCase):
|
class PacmanTest(TestCase):
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def setUpClass(cls):
|
||||||
|
warnings.filterwarnings('ignore')
|
||||||
|
|
||||||
def test_list_ignored_packages(self):
|
def test_list_ignored_packages(self):
|
||||||
ignored = pacman.list_ignored_packages(FILE_DIR + '/resources/pacman_ign_pkgs.conf')
|
ignored = pacman.list_ignored_packages(FILE_DIR + '/resources/pacman_ign_pkgs.conf')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user