summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2016-11-16 17:36:15 +0530
committerJonathan Holloway <jholloway@redhat.com>2016-12-12 08:01:33 -0800
commit3070312c13e02cace3041d3429b0c31fc10b73ee (patch)
tree15b202c91c00fd93ab5559bced17b2e7fa27127f /tests
parentb7aea27f6662fd5b0344c6dbffcf2b9a86c1f8cc (diff)
Clean up pyflakes and pep8 errors
Change-Id: Ibdd092118d3bb912716c46fd278ef3c680a6e742 Signed-off-by: Nigel Babu <nigelb@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bvt/test_bvt_lite_and_plus.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/bvt/test_bvt_lite_and_plus.py b/tests/bvt/test_bvt_lite_and_plus.py
index a77b6beea..55db725b9 100644
--- a/tests/bvt/test_bvt_lite_and_plus.py
+++ b/tests/bvt/test_bvt_lite_and_plus.py
@@ -15,12 +15,10 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-import pytest
import os
from glusto.core import Glusto as g
from glustolibs.gluster.gluster_base_class import (GlusterVolumeBaseClass,
runs_on)
-import time
@runs_on([['replicated', 'distributed', 'distributed-replicated',
@@ -47,7 +45,7 @@ class BvtTestsClass(GlusterVolumeBaseClass):
"scripts/file_dir_ops.py")
cls.script_upload_path = "/tmp/file_dir_ops.py"
ret = os.path.exists(cls.script_local_path)
- assert (ret == True), ("Unable to find the io scripts")
+ assert (ret is True), ("Unable to find the io scripts")
for client in cls.clients:
g.upload(client, cls.script_local_path, cls.script_upload_path)
@@ -100,7 +98,7 @@ class BvtTestsClass(GlusterVolumeBaseClass):
(self.mounts[i].client_system,
self.mounts[i].mountpoint))
rc = False
- assert (rc == True), "IO failed on some of the clients"
+ assert (rc is True), "IO failed on some of the clients"
# Get stat of all the files/dirs created.
all_mounts_procs = []
@@ -118,7 +116,7 @@ class BvtTestsClass(GlusterVolumeBaseClass):
(self.mounts[i].client_system,
self.mounts[i].mountpoint))
rc = False
- assert (rc == True), "Stat failed on some of the clients"
+ assert (rc is True), "Stat failed on some of the clients"
def tearDown(self):
pass