mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fix invalid string escape sequences.
This commit is contained in:
parent
f9cd50411f
commit
e45c763b64
48 changed files with 77 additions and 77 deletions
|
@ -269,7 +269,7 @@ class TestGetCollectorNames(unittest.TestCase):
|
|||
minimal_gather_subset = frozenset(['my_fact'])
|
||||
|
||||
self.assertRaisesRegexp(TypeError,
|
||||
'Bad subset .* given to Ansible.*allowed\:.*all,.*my_fact.*',
|
||||
r'Bad subset .* given to Ansible.*allowed\:.*all,.*my_fact.*',
|
||||
collector.get_collector_names,
|
||||
valid_subsets=valid_subsets,
|
||||
minimal_gather_subset=minimal_gather_subset,
|
||||
|
@ -341,7 +341,7 @@ class TestCollectorClassesFromGatherSubset(unittest.TestCase):
|
|||
# something claims 'unknown_collector' is a valid gather_subset, but there is
|
||||
# no FactCollector mapped to 'unknown_collector'
|
||||
self.assertRaisesRegexp(TypeError,
|
||||
'Bad subset.*unknown_collector.*given to Ansible.*allowed\:.*all,.*env.*',
|
||||
r'Bad subset.*unknown_collector.*given to Ansible.*allowed\:.*all,.*env.*',
|
||||
self._classes,
|
||||
all_collector_classes=default_collectors.collectors,
|
||||
gather_subset=['env', 'unknown_collector'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue