File tree Expand file tree Collapse file tree 3 files changed +4
-21
lines changed
packages/Python/lldbsuite/test
test/API/functionalities/data-formatter/data-formatter-stl/libcxx Expand file tree Collapse file tree 3 files changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -1578,21 +1578,6 @@ def set_actions_for_signal(
15781578 )
15791579
15801580
1581- class PrintableRegex (object ):
1582- def __init__ (self , text ):
1583- self .regex = re .compile (text )
1584- self .text = text
1585-
1586- def match (self , str ):
1587- return self .regex .match (str )
1588-
1589- def __str__ (self ):
1590- return "%s" % (self .text )
1591-
1592- def __repr__ (self ):
1593- return "re.compile(%s) -> %s" % (self .text , self .regex )
1594-
1595-
15961581def skip_if_callable (test , mycallable , reason ):
15971582 if callable (mycallable ):
15981583 if mycallable (test ):
Original file line number Diff line number Diff line change 22Test lldb data formatter subsystem.
33"""
44
5+ import re
56import lldb
67from lldbsuite .test .decorators import *
78from lldbsuite .test .lldbtest import *
@@ -30,9 +31,7 @@ def test(self):
3031
3132 self .runCmd ("run" , RUN_SUCCEEDED )
3233
33- lldbutil .skip_if_library_missing (
34- self , self .target (), lldbutil .PrintableRegex ("libc\+\+" )
35- )
34+ lldbutil .skip_if_library_missing (self , self .target (), re .compile (r"libc\+\+" ))
3635
3736 # The stop reason of the thread should be breakpoint.
3837 self .expect (
Original file line number Diff line number Diff line change 33"""
44
55
6+ import re
67import lldb
78from lldbsuite .test .decorators import *
89from lldbsuite .test .lldbtest import *
@@ -24,9 +25,7 @@ def test(self):
2425
2526 self .runCmd ("run" , RUN_SUCCEEDED )
2627
27- lldbutil .skip_if_library_missing (
28- self , self .target (), lldbutil .PrintableRegex ("libc\+\+" )
29- )
28+ lldbutil .skip_if_library_missing (self , self .target (), re .compile (r"libc\+\+" ))
3029
3130 # The stop reason of the thread should be breakpoint.
3231 self .expect (
You can’t perform that action at this time.
0 commit comments