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(
1578
1578
)
1579
1579
1580
1580
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
-
1596
1581
def skip_if_callable (test , mycallable , reason ):
1597
1582
if callable (mycallable ):
1598
1583
if mycallable (test ):
Original file line number Diff line number Diff line change 2
2
Test lldb data formatter subsystem.
3
3
"""
4
4
5
+ import re
5
6
import lldb
6
7
from lldbsuite .test .decorators import *
7
8
from lldbsuite .test .lldbtest import *
@@ -30,9 +31,7 @@ def test(self):
30
31
31
32
self .runCmd ("run" , RUN_SUCCEEDED )
32
33
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\+\+" ))
36
35
37
36
# The stop reason of the thread should be breakpoint.
38
37
self .expect (
Original file line number Diff line number Diff line change 3
3
"""
4
4
5
5
6
+ import re
6
7
import lldb
7
8
from lldbsuite .test .decorators import *
8
9
from lldbsuite .test .lldbtest import *
@@ -24,9 +25,7 @@ def test(self):
24
25
25
26
self .runCmd ("run" , RUN_SUCCEEDED )
26
27
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\+\+" ))
30
29
31
30
# The stop reason of the thread should be breakpoint.
32
31
self .expect (
You can’t perform that action at this time.
0 commit comments