Revert "[lldb][bindings] Fix module_access handling of regex"
This reverts commit 75f05fccbb.
This commit broke the windows lldb bot: https://lab.llvm.org/buildbot/#/builders/83/builds/23284
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
Test SBTarget APIs.
|
||||
"""
|
||||
|
||||
import re
|
||||
import unittest2
|
||||
import os
|
||||
import lldb
|
||||
@@ -517,14 +516,3 @@ class TargetAPITestCase(TestBase):
|
||||
module = target.GetModuleAtIndex(i)
|
||||
self.assertTrue(target.IsLoaded(module), "Running the target should "
|
||||
"have loaded its modules.")
|
||||
|
||||
def test_module_subscript_regex(self):
|
||||
"""Exercise SBTarget.module subscripting with regex."""
|
||||
self.build()
|
||||
exe = self.getBuildArtifact("a.out")
|
||||
target = self.dbg.CreateTarget(exe)
|
||||
self.assertTrue(target, VALID_TARGET)
|
||||
modules = target.module[re.compile(r"/a[.]out$")]
|
||||
self.assertEqual(len(modules), 1)
|
||||
exe_mod = modules[0]
|
||||
self.assertEqual(exe_mod.file.fullpath, exe)
|
||||
|
||||
Reference in New Issue
Block a user