Mercurial > hg > CbC > CbC_llvm
diff bindings/python/llvm/tests/base.py @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
line wrap: on
line diff
--- a/bindings/python/llvm/tests/base.py Sun Dec 23 19:23:36 2018 +0900 +++ b/bindings/python/llvm/tests/base.py Wed Aug 14 19:46:37 2019 +0900 @@ -1,6 +1,8 @@ import os.path +import sys import unittest + POSSIBLE_TEST_BINARIES = [ 'libreadline.so.5', 'libreadline.so.6', @@ -15,6 +17,9 @@ ] class TestBase(unittest.TestCase): + if sys.version_info.major == 2: + assertRaisesRegex = unittest.TestCase.assertRaisesRegexp + def get_test_binary(self): """Helper to obtain a test binary for object file testing.