From 64ee442ef94f6ea19a4e18bca2e073bef4caabfc Mon Sep 17 00:00:00 2001 From: Leela Venkaiah G Date: Mon, 31 Aug 2020 12:37:04 +0530 Subject: [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 --- tests/functional/afr/test_repl_heal_with_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/functional/afr') 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 -- cgit