summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-12-13 12:11:23 +0100
committerRaphael Isemann <teemperor@gmail.com>2019-12-13 12:23:04 +0100
commita52a11139c0e3db9b00079aa1516080742b79475 (patch)
treed917a778c431dff201f4c9c29cff0b0c4092ef63 /lldb/packages/Python/lldbsuite/test/python_api
parentcaa7c9e6f356574496ca0ec47cb2b81afb1f6679 (diff)
downloadbcm5719-llvm-a52a11139c0e3db9b00079aa1516080742b79475.tar.gz
bcm5719-llvm-a52a11139c0e3db9b00079aa1516080742b79475.zip
[lldb][NFC] Remove 'from __future__ import print_function' from all tests that don't actually call 'print()'
Summary: A lot of tests do this trick but the vast majority of them don't even call `print()`. Most of this patch was generated by a script that just looks at all the files and deletes the line if there is no `print (` or `print(` anywhere else in the file. I checked the remaining tests manually and deleted the import if we never call print (but instead do stuff like `expr print(...)` and similar false-positives). I also corrected the additional empty lines after the import in the files that I manually edited. Reviewers: JDevlieghere, labath, jfb Reviewed By: labath Subscribers: dexonsmith, wuzish, nemanjai, kbarton, christof, arphaman, abidh, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D71452
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py3
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/class_members/TestSBTypeClassMembers.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/findvalue_duplist/TestSBFrameFindValue.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/hello_world/TestHelloWorld.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/lldbutil/TestSwigVersion.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/lldbutil/process/TestPrintStackTraces.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/objc_type/TestObjCType.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/rdar-12481949/Test-rdar-12481949.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/sbvalue_persist/TestSBValuePersist.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/value/change_values/TestChangeValueAPI.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/value/empty_class/TestValueAPIEmptyClass.py1
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/value_var_update/TestValueVarUpdate.py1
21 files changed, 0 insertions, 23 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py b/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py
index 17fb4b0895d..dd578469634 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/breakpoint/TestBreakpointAPI.py
@@ -2,9 +2,6 @@
Test SBBreakpoint APIs.
"""
-from __future__ import print_function
-
-
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/class_members/TestSBTypeClassMembers.py b/lldb/packages/Python/lldbsuite/test/python_api/class_members/TestSBTypeClassMembers.py
index 3517abb1ebb..884043ac2ec 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/class_members/TestSBTypeClassMembers.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/class_members/TestSBTypeClassMembers.py
@@ -2,7 +2,6 @@
Test SBType APIs to fetch member function types.
"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py b/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
index 5d025a46dce..53ca64932d6 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
@@ -2,7 +2,6 @@
Test lldb Python API for file handles.
"""
-from __future__ import print_function
import os
import io
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/findvalue_duplist/TestSBFrameFindValue.py b/lldb/packages/Python/lldbsuite/test/python_api/findvalue_duplist/TestSBFrameFindValue.py
index 8de1bec8698..0479c44b0ad 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/findvalue_duplist/TestSBFrameFindValue.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/findvalue_duplist/TestSBFrameFindValue.py
@@ -1,6 +1,5 @@
"""Test that SBFrame::FindValue finds things but does not duplicate the entire variables list"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/hello_world/TestHelloWorld.py b/lldb/packages/Python/lldbsuite/test/python_api/hello_world/TestHelloWorld.py
index a94b19b3502..fc6ef4882a0 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/hello_world/TestHelloWorld.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/hello_world/TestHelloWorld.py
@@ -1,6 +1,5 @@
"""Test Python APIs for target (launch and attach), breakpoint, and process."""
-from __future__ import print_function
import os
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/lldbutil/TestSwigVersion.py b/lldb/packages/Python/lldbsuite/test/python_api/lldbutil/TestSwigVersion.py
index 58e47d9a79f..8c5c6efda53 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/lldbutil/TestSwigVersion.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/lldbutil/TestSwigVersion.py
@@ -2,7 +2,6 @@
Test that we embed the swig version into the lldb module
"""
-from __future__ import print_function
"""
import os
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/lldbutil/process/TestPrintStackTraces.py b/lldb/packages/Python/lldbsuite/test/python_api/lldbutil/process/TestPrintStackTraces.py
index 805bb315243..123b60e4cd7 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/lldbutil/process/TestPrintStackTraces.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/lldbutil/process/TestPrintStackTraces.py
@@ -2,7 +2,6 @@
Test SBprocess and SBThread APIs with printing of the stack traces using lldbutil.
"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py b/lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py
index e3678d97c83..6cd8d4fa9c4 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/name_lookup/TestNameLookup.py
@@ -2,7 +2,6 @@
Test SBTarget APIs.
"""
-from __future__ import print_function
import unittest2
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/objc_type/TestObjCType.py b/lldb/packages/Python/lldbsuite/test/python_api/objc_type/TestObjCType.py
index 782ff8e771a..37f53758d44 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/objc_type/TestObjCType.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/objc_type/TestObjCType.py
@@ -2,7 +2,6 @@
Test SBType for ObjC classes.
"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py b/lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py
index b03cebce48c..fc26c3b6c86 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/process/read-mem-cstring/TestReadMemCString.py
@@ -1,6 +1,5 @@
"""Test reading c-strings from memory via SB API."""
-from __future__ import print_function
import os
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/rdar-12481949/Test-rdar-12481949.py b/lldb/packages/Python/lldbsuite/test/python_api/rdar-12481949/Test-rdar-12481949.py
index 8d6a6f14f68..65c669185d0 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/rdar-12481949/Test-rdar-12481949.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/rdar-12481949/Test-rdar-12481949.py
@@ -2,7 +2,6 @@
Check that SBValue.GetValueAsSigned() does the right thing for a 32-bit -1.
"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py b/lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
index e5ee7687268..cf2b026a03e 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/sbdata/TestSBData.py
@@ -1,6 +1,5 @@
"""Test the SBData APIs."""
-from __future__ import print_function
from math import fabs
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py b/lldb/packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py
index ee4a102fc14..44a6362ce92 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/sblaunchinfo/TestSBLaunchInfo.py
@@ -2,7 +2,6 @@
Test SBLaunchInfo
"""
-from __future__ import print_function
from lldbsuite.test.lldbtest import *
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py b/lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py
index 48c701ccce7..5f9dd46d8bd 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py
@@ -2,7 +2,6 @@
Test some SBStructuredData API.
"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/sbvalue_persist/TestSBValuePersist.py b/lldb/packages/Python/lldbsuite/test/python_api/sbvalue_persist/TestSBValuePersist.py
index c7b3cdd1f1c..3bf4b7ae3b2 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/sbvalue_persist/TestSBValuePersist.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/sbvalue_persist/TestSBValuePersist.py
@@ -1,6 +1,5 @@
"""Test SBValue::Persist"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py b/lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py
index 088a66c71c5..1513b98b772 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py
@@ -2,7 +2,6 @@
Test SBSection APIs.
"""
-from __future__ import print_function
from lldbsuite.test.decorators import *
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py b/lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py
index c06ee1411e2..f072f5af27f 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py
@@ -2,7 +2,6 @@
Test SBProcess APIs, including ReadMemory(), WriteMemory(), and others.
"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py b/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py
index 0025aa8ab95..27d1b60a507 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/two-files/TestSymbolContextTwoFiles.py
@@ -2,7 +2,6 @@
Test SBSymbolContext APIs.
"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/value/change_values/TestChangeValueAPI.py b/lldb/packages/Python/lldbsuite/test/python_api/value/change_values/TestChangeValueAPI.py
index 108e813a61a..6f0dee21af6 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/value/change_values/TestChangeValueAPI.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/value/change_values/TestChangeValueAPI.py
@@ -2,7 +2,6 @@
Test some SBValue APIs.
"""
-from __future__ import print_function
import lldb
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/value/empty_class/TestValueAPIEmptyClass.py b/lldb/packages/Python/lldbsuite/test/python_api/value/empty_class/TestValueAPIEmptyClass.py
index e17d5740258..c7197e51c23 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/value/empty_class/TestValueAPIEmptyClass.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/value/empty_class/TestValueAPIEmptyClass.py
@@ -1,4 +1,3 @@
-from __future__ import print_function
import lldb
from lldbsuite.test.decorators import *
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/value_var_update/TestValueVarUpdate.py b/lldb/packages/Python/lldbsuite/test/python_api/value_var_update/TestValueVarUpdate.py
index b7d2c8ecbc8..b3cc23ed66b 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/value_var_update/TestValueVarUpdate.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/value_var_update/TestValueVarUpdate.py
@@ -1,6 +1,5 @@
"""Test SBValue::GetValueDidChange"""
-from __future__ import print_function
import lldb
OpenPOWER on IntegriCloud