mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-24 01:00:26 -07:00
Enable most unittests on python3 (just some vault unittests and a logging one left) (#17240)
Make some python3 fixes to make the unittests pass: * galaxy imports * dictionary iteration in role requirements * swap_stdout helper for unittests * Normalize to text string in a facts.py function
This commit is contained in:
parent
c2d87816a8
commit
44d979c8f5
11 changed files with 23 additions and 29 deletions
|
@ -169,7 +169,7 @@ class RoleRequirement(RoleDefinition):
|
|||
if 'scm' not in role:
|
||||
role['scm'] = None
|
||||
|
||||
for key in role.keys():
|
||||
for key in list(role.keys()):
|
||||
if key not in VALID_SPEC_KEYS:
|
||||
role.pop(key)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue