[lldb] Explicitly import json in TestSymbolFileJSON.py
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 13 Mar 2023 21:39:10 +0000 (14:39 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 13 Mar 2023 21:48:05 +0000 (14:48 -0700)
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.

lldb/test/API/macosx/symbols/TestSymbolFileJSON.py

index 9c17f07..3b25a31 100644 (file)
@@ -4,6 +4,8 @@ from lldbsuite.test.decorators import *
 from lldbsuite.test.lldbtest import *
 from lldbsuite.test import lldbutil
 
+import json
+
 
 class TargetSymbolsFileJSON(TestBase):