diff --git a/tests/test_gather.py b/tests/test_gather.py index 95b768e5..0f6814f1 100644 --- a/tests/test_gather.py +++ b/tests/test_gather.py @@ -22,7 +22,6 @@ os.environ['PATH'] = '%s:%s' % (BINDIR, os.environ['PATH']) from pungi.wrappers.pungi import PungiWrapper try: - from dnf import __version__ as dnf_version from pungi.dnf_wrapper import DnfWrapper, Conf from pungi.gather_dnf import Gather, GatherOptions, PkgFlag HAS_DNF = True @@ -1819,10 +1818,6 @@ class DNFDepsolvingTestCase(DepsolvingBase, unittest.TestCase): conf = Conf(base_arch) conf.persistdir = persistdir conf.cachedir = self.cachedir - if int(dnf_version.split('.')[0]) < 3: - conf.modulesdir = os.path.join(persistdir, 'modules.d') - else: - conf.modulesdir._set(os.path.join(persistdir, 'modules.d')) if exclude: conf.exclude = exclude dnf = DnfWrapper(conf)