diff options
author | Gary Lin <glin@suse.com> | 2018-06-25 18:31:31 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2018-06-27 16:33:24 +0800 |
commit | aaa4c651bf5ba5fce14e9fe8c2c12687886f745d (patch) | |
tree | a39094836b1418cf8fbcaff58eed7485f355d47c /BaseTools/Tests | |
parent | 92beb1e4c73a40a708c7c0cade5c7cee314b3887 (diff) | |
download | edk2-aaa4c651bf5ba5fce14e9fe8c2c12687886f745d.tar.gz |
BaseTools: Remove types.TypeType
"types.TypeType" is now an alias of the built-in "type" and is not
compatible with python 3.
Contributed-under: TianoCore Contribution Agreement 1.1
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Tests')
-rw-r--r-- | BaseTools/Tests/TestTools.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/BaseTools/Tests/TestTools.py b/BaseTools/Tests/TestTools.py index be7b4ad428..20a4ea28aa 100644 --- a/BaseTools/Tests/TestTools.py +++ b/BaseTools/Tests/TestTools.py @@ -23,7 +23,6 @@ import random import shutil
import subprocess
import sys
-import types
import unittest
TestsDir = os.path.realpath(os.path.split(sys.argv[0])[0])
@@ -42,7 +41,7 @@ if PythonSourceDir not in sys.path: def MakeTheTestSuite(localItems):
tests = []
for name, item in localItems.iteritems():
- if isinstance(item, types.TypeType):
+ if isinstance(item, type):
if issubclass(item, unittest.TestCase):
tests.append(unittest.TestLoader().loadTestsFromTestCase(item))
elif issubclass(item, unittest.TestSuite):
|