summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipaserver
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-26 18:22:22 +0200
committerMartin Basti <mbasti@redhat.com>2016-09-27 13:35:58 +0200
commit9d83be3647547cfca4e129cfeb63771213232cf7 (patch)
tree0899bfbc662355dd8d1318b5e6d4909c5aaa993c /ipatests/test_ipaserver
parent0f88f8fe889ae4801fc8d5ece1ad51c5246718ac (diff)
downloadfreeipa-9d83be3647547cfca4e129cfeb63771213232cf7.tar.gz
freeipa-9d83be3647547cfca4e129cfeb63771213232cf7.tar.xz
freeipa-9d83be3647547cfca4e129cfeb63771213232cf7.zip
Remove unused variables in tests
This commit removes or marks unused variables as "expected to be unused" by using '_' prefix. Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipatests/test_ipaserver')
-rw-r--r--ipatests/test_ipaserver/test_otptoken_import.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_ipaserver/test_otptoken_import.py b/ipatests/test_ipaserver/test_otptoken_import.py
index ba7c3c8b0..f1b4331df 100644
--- a/ipatests/test_ipaserver/test_otptoken_import.py
+++ b/ipatests/test_ipaserver/test_otptoken_import.py
@@ -102,7 +102,7 @@ class test_otptoken_import(object):
def test_figure8(self):
nss.nss_init_nodb()
try:
- doc = PSKCDocument(os.path.join(basename, "pskc-figure8.xml"))
+ PSKCDocument(os.path.join(basename, "pskc-figure8.xml"))
except NotImplementedError: # X.509 is not supported.
pass
else:
@@ -113,7 +113,7 @@ class test_otptoken_import(object):
def test_invalid(self):
nss.nss_init_nodb()
try:
- doc = PSKCDocument(os.path.join(basename, "pskc-invalid.xml"))
+ PSKCDocument(os.path.join(basename, "pskc-invalid.xml"))
except ValueError: # File is invalid.
pass
else: