Irit Goihman has uploaded a new change for review. Change subject: tests: ported testlibTests.py to python3 ......................................................................
tests: ported testlibTests.py to python3 ported testlib.py to python3 in order that testlibTests.py to be python3 compatibe Change-Id: I5325c964926164bf746d42a6006bb410b0f0fc92 Signed-off-by: Irit Goihman <igoih...@redhat.com> --- M tests/Makefile.am M tests/testlib.py 2 files changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/94/59694/1 diff --git a/tests/Makefile.am b/tests/Makefile.am index bf70b65..a64ae88 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -231,7 +231,6 @@ storagefakelibTests.py \ storagetestlibTests.py \ tasksetTests.py \ - testlibTests.py \ toolBondingTests.py \ toolTests.py \ transportWrapperTests.py \ diff --git a/tests/testlib.py b/tests/testlib.py index eff4ae9..c3cf3ae 100644 --- a/tests/testlib.py +++ b/tests/testlib.py @@ -1,5 +1,5 @@ # -# Copyright 2012-2014 Red Hat, Inc. +# Copyright 2012-2016 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -31,6 +31,7 @@ import shutil import sys from six.moves import configparser +from six.moves import range import tempfile import threading from contextlib import contextmanager @@ -440,7 +441,7 @@ except AttributeError: recording = [] setattr(obj, name, recording) - recording.append((meth.func_name, args, kwargs)) + recording.append((meth.__name__, args, kwargs)) return meth(obj, *args, **kwargs) return wrapper -- To view, visit https://gerrit.ovirt.org/59694 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5325c964926164bf746d42a6006bb410b0f0fc92 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Irit Goihman <igoih...@redhat.com> _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/admin/lists/vdsm-patches@lists.fedorahosted.org