[python bindings] Added code to get the length of a memory buffer. Tests are included.
[oota-llvm.git] / bindings / python / llvm / tests / base.py
index ff9eb2fc143862515188fd21a30d58fb7503a84e..22da5fdbdd0970da4eecb5e7282ecb2bf243f616 100644 (file)
@@ -30,3 +30,6 @@ class TestBase(unittest.TestCase):
 
         raise Exception('No suitable test binaries available!')
     get_test_binary.__test__ = False
+
+    def get_test_file(self):
+        return os.path.join(os.path.dirname(os.path.abspath(__file__)), "test_file")