Fixes:
/usr/lib/python2.7/site-packages/ipatests/test_cmdline/test_ipagetkeytab.py:116: SyntaxWarning: assertion is always true, perhaps remove parentheses?


Patch attached.
From 27fa8fb58e2163836e0e5784fee422af248a158c Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Mon, 14 Dec 2015 12:21:38 +0100
Subject: [PATCH] Tests: test_ipagetkeytab: fix assert that is always true

Fixes:
/usr/lib/python2.7/site-packages/ipatests/test_cmdline/test_ipagetkeytab.py:116:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
---
 ipatests/test_cmdline/test_ipagetkeytab.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ipatests/test_cmdline/test_ipagetkeytab.py b/ipatests/test_cmdline/test_ipagetkeytab.py
index 2df9b6eb2c82fb7c4bf99ebd5177c575736eb90f..37f4e4a7aac4354610c0aae53f4c321548e253c8 100644
--- a/ipatests/test_cmdline/test_ipagetkeytab.py
+++ b/ipatests/test_cmdline/test_ipagetkeytab.py
@@ -113,8 +113,8 @@ class test_ipagetkeytab(cmdline_test):
             result = ipautil.run(new_args, None, capture_error=True)
             expected = 'Keytab successfully retrieved and stored in: %s\n' % (
                 self.keytabname)
-            assert (expected in result.error_output,
-                    'Success message not in output:\n%s' % result.error_output)
+            assert expected in result.error_output, (
+                'Success message not in output:\n%s' % result.error_output)
         except ipautil.CalledProcessError as e:
             assert (False)
 
-- 
2.5.0

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to