[Lldb-commits] [lldb] 9c972a3 - [lldb] Explicitly import json in TestSymbolFileJSON.py
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 13 14:48:11 PDT 2023
Author: Jonas Devlieghere
Date: 2023-03-13T14:48:05-07:00
New Revision: 9c972a3d82f303714be6d4f1485a0dc6642cd5f3
URL: https://github.com/llvm/llvm-project/commit/9c972a3d82f303714be6d4f1485a0dc6642cd5f3
DIFF: https://github.com/llvm/llvm-project/commit/9c972a3d82f303714be6d4f1485a0dc6642cd5f3.diff
LOG: [lldb] Explicitly import json in TestSymbolFileJSON.py
The test was relying on the json module getting imported transitively by
one of its imported modules. Make this less brittle by importing it
explicitly.
Added:
Modified:
lldb/test/API/macosx/symbols/TestSymbolFileJSON.py
Removed:
################################################################################
diff --git a/lldb/test/API/macosx/symbols/TestSymbolFileJSON.py b/lldb/test/API/macosx/symbols/TestSymbolFileJSON.py
index 9c17f07420e91..3b25a3161149b 100644
--- a/lldb/test/API/macosx/symbols/TestSymbolFileJSON.py
+++ b/lldb/test/API/macosx/symbols/TestSymbolFileJSON.py
@@ -4,6 +4,8 @@
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
+import json
+
class TargetSymbolsFileJSON(TestBase):
More information about the lldb-commits
mailing list