summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2018-10-28 14:31:23 +0100
committerAndreas Jaeger <aj@suse.com>2018-10-28 14:31:23 +0100
commitf6ac770d372b5b10c413b98aee82d219543baed4 (patch)
tree95398f10ca8c47a056a9fe998c6d187ab3df30c2
parenta17765ca4f0821758639679a8943913c5c576e13 (diff)
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
Notes
Notes (review): Code-Review+2: Tobias Henkel <tobias.henkel@bmw.de> Code-Review+2: Ian Wienand <iwienand@redhat.com> Workflow+1: Ian Wienand <iwienand@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 30 Oct 2018 00:10:25 +0000 Reviewed-on: https://review.openstack.org/613785 Project: openstack-infra/zuul-jobs Branch: refs/heads/master
-rw-r--r--roles/add-build-sshkey/library/test_sshagent_remove_keys.py2
1 files changed, 1 insertions, 1 deletions
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 b13dbbd..952565d 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):
78 l = a.list() 78 l = a.list()
79 self.assertEqual(2, len(l)) 79 self.assertEqual(2, len(l))
80 80
81 run('^(?!\(stdin\)).*') # noqa 81 run(r'^(?!\(stdin\)).*')
82 82
83 l = a.list() 83 l = a.list()
84 self.assertEqual(1, len(l)) 84 self.assertEqual(1, len(l))