Use dnf backend for repoclosure on PY3
When yum is not available, it makes no sense to offer it as an option. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
60cc3e5d55
commit
d5a0316877
4 changed files with 9 additions and 5 deletions
|
|
@ -427,9 +427,10 @@ class RepoclosureTestCase(ConfigTestCase):
|
|||
repoclosure_backend='fnd', # Intentionally with a typo
|
||||
)
|
||||
|
||||
options = ['yum', 'dnf'] if six.PY2 else ['dnf']
|
||||
self.assertValidation(
|
||||
cfg,
|
||||
["Failed validation in repoclosure_backend: 'fnd' is not one of ['yum', 'dnf']"])
|
||||
["Failed validation in repoclosure_backend: 'fnd' is not one of %s" % options])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue