summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeela Venkaiah G <lgangava@redhat.com>2020-08-31 12:37:04 +0530
committerLeela Venkaiah G <lgangava@redhat.com>2020-08-31 12:37:04 +0530
commit64ee442ef94f6ea19a4e18bca2e073bef4caabfc (patch)
tree420de529b0706031e1e977018b6a6a6856168089
parente25baace5a1e2f7cc7774303710f1d3d871233a2 (diff)
[TestFix] Fix py2/3 compatiblity in `str.rsplit`
- `str.rsplit` doesn't accept named args in py2 - Removed named arg to make it compatible with both versions Change-Id: Iba287ef4c98ebcbafe55f2166c99aef0c20ed9aa Signed-off-by: Leela Venkaiah G <lgangava@redhat.com>
-rw-r--r--tests/functional/afr/test_repl_heal_with_io.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/afr/test_repl_heal_with_io.py b/tests/functional/afr/test_repl_heal_with_io.py
index efcb4a4e3..0cdff000c 100644
--- a/tests/functional/afr/test_repl_heal_with_io.py
+++ b/tests/functional/afr/test_repl_heal_with_io.py
@@ -125,7 +125,7 @@ class TestHealWithIO(GlusterBaseClass):
if self.volume_type.find('distributed') >= 0:
hashed_subvol, index = find_hashed_subvol(
subvols, '',
- self.file_path.rsplit('/', maxsplit=1)[1])
+ self.file_path.rsplit('/', 1)[1])
self.assertIsNotNone(hashed_subvol,
'Unable to find hashed subvolume')
return index