Fixes #27893
Use f'strings for the message when asserting expected_ret_code and return_code. Change the expected_ret_code from an optional to have a default value of 0.
cc MarcoFalke
Fixes #27893
Use f'strings for the message when asserting expected_ret_code and return_code. Change the expected_ret_code from an optional to have a default value of 0.
cc MarcoFalke
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | stickies-v, MarcoFalke, brunoerg |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
377 | @@ -378,12 +378,9 @@ def is_node_stopped(self, expected_ret_code=None):
378 |
379 | # process has stopped. Assert that it didn't return an error code.
380 | # unless 'expected_ret_code' is provided.
You'll have to remove this line as well, because expected_ret_code is non-optional now
Done, thanks.
376 | @@ -377,13 +377,9 @@ def is_node_stopped(self, expected_ret_code=None): 377 | return False 378 | 379 | # process has stopped. Assert that it didn't return an error code. 380 | - # unless 'expected_ret_code' is provided. 381 | - if expected_ret_code is not None: 382 | + if expected_ret_code != 0:
Again, as mentioned previously, the expected_ret_code is always provided and will always have to be checked via the assert
Didn't notice that, done.
ACK 6779e6ed7f9ad455566dca8c5aa4ef13b6715cd5
lgtm ACK 6779e6ed7f9ad455566dca8c5aa4ef13b6715cd5
ACK 6779e6ed7f9ad455566dca8c5aa4ef13b6715cd5