[Lldb-commits] [PATCH] D81516: [lldb/Test] Ensure inline tests have a unique build directory
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 10 09:18:00 PDT 2020
JDevlieghere marked 2 inline comments as done.
JDevlieghere added inline comments.
================
Comment at: lldb/packages/Python/lldbsuite/test/lldbinline.py:209
test_class = type(name, (InlineTest,), dict(test=test_func,
- name=name, _build_dict=build_dict))
+ name=name, __inline_name__=name, _build_dict=build_dict))
----------------
labath wrote:
> `__inline_name__` is not a good name according to <https://www.python.org/dev/peps/pep-0008/>:
> ```
> __double_leading_and_trailing_underscore__: "magic" objects or attributes that live in user-controlled namespaces. E.g. __init__, __import__ or __file__. Never invent such names; only use them as documented.
> ```
>
I did it for consistency with `__no_debug_info_test__`. Based on that PEP we should rename it to `__no_debug_info_test`?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81516/new/
https://reviews.llvm.org/D81516
More information about the lldb-commits
mailing list