support.args_from_interpreter_flags() adds -X uops#110124
support.args_from_interpreter_flags() adds -X uops#110124vstinner wants to merge 1 commit intopython:mainfrom
Conversation
|
@gvanrossum: With this change, the following tests will inherit Currently, it's only done manually in |
|
I'm torn. I didn't know there was infrastructure for passing It is not our intention that end users or even contributors (including most core devs) would ever need to pass I have no idea how the code you're changing here works -- if you need it yourself I am fine with you merging this, but I don't feel comfortable approving the PR. |
Usually, regrtest tries to pass Python command line options of the first command (typed by the user) to worker processes. It's just convenient:
Without this change, I don't need this options. I'm not sure that I understand its purpose (since it's not documented ;-)). It's just that I was surprised to see a special code path for it in test_regtest, and only in test_regrtest. If the option should not be passed to test worker processes, should the test_regrtest change be reverted? I'm talking about these lines: def run_python(self, args, **kw):
extraargs = []
if 'uops' in sys._xoptions:
# Pass -X uops along
extraargs.extend(['-X', 'uops'])
args = [sys.executable, *extraargs, '-X', 'faulthandler', '-I', *args]For this code, I chose to not use |
|
You can look at the git history to see why I added that. I’m sure I needed it for something. |
|
In Brno I can explain the option. |
|
In short, I understand that this change is not desired, the current behavior is the expected behavior. Ok, I just close my issue. Thanks for the explanation. |
|
Thanks. Cross-reference: #108778 |
No description provided.