From 0f783599a4c645d8ae826f990f7b938fac6e5dae Mon Sep 17 00:00:00 2001 From: Lawrence D'Anna Date: Thu, 17 Oct 2019 01:35:22 +0000 Subject: delete SWIG typemaps for FILE* Summary: The SWIG typemaps for FILE* are no longer used, so this patch deletes them. Reviewers: JDevlieghere, jasonmolenda, labath Reviewed By: labath Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D68963 llvm-svn: 375073 --- lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp') diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp index e6d1c4d..5c3c609 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp @@ -585,8 +585,9 @@ TEST_F(PythonDataObjectsTest, TestPythonFile) { auto file = FileSystem::Instance().Open(FileSpec(FileSystem::DEV_NULL), File::eOpenOptionRead); ASSERT_THAT_EXPECTED(file, llvm::Succeeded()); - PythonFile py_file(*file.get(), "r"); - EXPECT_TRUE(PythonFile::Check(py_file.get())); + auto py_file = PythonFile::FromFile(*file.get(), "r"); + ASSERT_THAT_EXPECTED(py_file, llvm::Succeeded()); + EXPECT_TRUE(PythonFile::Check(py_file.get().get())); } TEST_F(PythonDataObjectsTest, TestObjectAttributes) { -- cgit v1.1