From f6ac770d372b5b10c413b98aee82d219543baed4 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 28 Oct 2018 14:31:23 +0100 Subject: [PATCH] Fix noqa warning Change Ibfbd5df21e01d5a7bd44a216ff63bc805dd5c186 added the noqa to silence the warning - the real fix is to use a raw string for the regex that gets passed in. Change-Id: I986961082e0252547ca0b7e2cade3167459edf9b --- roles/add-build-sshkey/library/test_sshagent_remove_keys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/add-build-sshkey/library/test_sshagent_remove_keys.py b/roles/add-build-sshkey/library/test_sshagent_remove_keys.py index b13dbbd8b..952565d81 100644 --- a/roles/add-build-sshkey/library/test_sshagent_remove_keys.py +++ b/roles/add-build-sshkey/library/test_sshagent_remove_keys.py @@ -78,7 +78,7 @@ class TestAgent(testtools.TestCase): l = a.list() self.assertEqual(2, len(l)) - run('^(?!\(stdin\)).*') # noqa + run(r'^(?!\(stdin\)).*') l = a.list() self.assertEqual(1, len(l))