diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py index 6f7e59ef485b7ce9be5020f5c2c3925c35027ff5..98e1b05387e7de20a6c53d03fd88ac12692cdee1 100644 --- a/tests/system/shared/utils.py +++ b/tests/system/shared/utils.py @@ -103,9 +103,9 @@ def prepareForSignal(object, signal): def cleanUpUserFiles(pathsToProFiles=None): if pathsToProFiles==None: return False - if className(pathsToProFiles) in ("str", "unicode"): + if isinstance(pathsToProFiles, (str, unicode)): filelist = glob.glob(pathsToProFiles+".user*") - elif className(pathsToProFiles)=="list": + elif isinstance(pathsToProFiles, (list, tuple)): filelist = [] for p in pathsToProFiles: filelist.extend(glob.glob(p+".user*"))