[Lldb-commits] [lldb] r251822 - Remove the __import__ hack of lldbtest_config.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 2 11:38:58 PST 2015
Author: zturner
Date: Mon Nov 2 13:38:58 2015
New Revision: 251822
URL: http://llvm.org/viewvc/llvm-project?rev=251822&view=rev
Log:
Remove the __import__ hack of lldbtest_config.
I think the underlying problem was fixed by r251819, but I can't
reproduce the problem. So this is to check whether it does in
fact fix the problem.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/dotest.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest.py?rev=251822&r1=251821&r2=251822&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py Mon Nov 2 13:38:58 2015
@@ -19,15 +19,12 @@ for available options.
"""
from __future__ import print_function
-# this module needs to have global visibility, otherwise test cases
-# will import it anew in their local namespace, essentially losing access
-# to all the configuration data
-globals()['lldbtest_config'] = __import__('lldbtest_config')
import use_lldb_suite
-
import lldbsuite
+import lldbtest_config
+
import atexit
import commands
import importlib
More information about the lldb-commits
mailing list