mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
tests: filtering some wrong warnings
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user