Fix/improve tests (#1052)

* Improve unit test condition.

* Improve/fix tests.
This commit is contained in:
Felix Fontein
2025-03-08 09:54:41 +01:00
committed by GitHub
parent ca7f3eb82f
commit fdb97428a3
27 changed files with 130 additions and 115 deletions
+1 -1
View File
@@ -57,4 +57,4 @@ class TestDockerConnectionClass(unittest.TestCase):
self.dc._version = None
self.dc.remote_user = 'foo'
(self.assertRaisesRegexp if PY2 else self.assertRaisesRegex)(
AnsibleError, '^Docker version check (.*?) failed: ', self.dc._get_actual_user)
AnsibleError, '^Docker version check (.*?) failed:', self.dc._get_actual_user)