summaryrefslogtreecommitdiffstats
path: root/tests/functional/glusterd/test_detach_node_used_to_mount.py
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2019-11-22 22:02:02 +0530
committerValerii Ponomarov <vponomar@redhat.com>2019-11-28 17:48:26 +0530
commit7478c9fafaebeab1054509fc92b2767d80c60c4d (patch)
treed03f5be9d58daf62408bf0ffb849c0eee89592af /tests/functional/glusterd/test_detach_node_used_to_mount.py
parent2d04a06998a4c114a8aa22cb7cd2d58d9788ec43 (diff)
[py2to3] Refactor gluster_base_class.py
Following changes were implemented: - Delete unused imports and place used ones in the alphabetical order. Imports are splitted into 3 groups: built-ins, third-parties and local modules/libs. - Make changes to support py3 in addition to py2. - Minimize number of code lines keeping the same behaviour and improving readability. - Add possibility to get 'bound' (cls) methods using 'get_super_method' staticmethod from base class. Before it was possible to call only unbound (self) methods. - Update 'test_add_brick.py' module as PoC for running base class bound methods in both - py2 and py3. Now this module py2/3 compatible. Change-Id: I1b66b3a91084b2487c26bec8763ab2b4e12ac482 Signed-off-by: Valerii Ponomarov <kiparis.kh@gmail.com>
Diffstat (limited to 'tests/functional/glusterd/test_detach_node_used_to_mount.py')
0 files changed, 0 insertions, 0 deletions