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:
Stella Stamenova
2022-09-06 08:57:28 -07:00
parent a7c6cdc5cf
commit bd323e42c8
2 changed files with 5 additions and 17 deletions

View File

@@ -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)