Skip to content

Commit da2f682

Browse files
committed
Use getattr instead
Created using spr 1.3.6-beta.1
1 parent 8cef519 commit da2f682

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# we exit.
3131
has_run_tests = False
3232

33-
has_execute_mi = "execute_mi" in gdb.__dict__
33+
has_execute_mi = getattr(gdb, "execute_mi", None) is not None
3434

3535

3636
class CheckResult(gdb.Command):

0 commit comments

Comments
 (0)