-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-116057: Use relative recursion limits when testing os.walk
and Path.walk
#116058
Conversation
This is a change for the test, therefore as the devguide said, the news entry is not needed. |
There are already quite a few news entries in the "Tests" section for the next 3.13 alpha, so I'm not clear what the convention is here. |
Ah, you are right, so I'm not clear with this too now. 😂 Hi @erlend-aasland, could you please help us with this convention? Should we add a news entry for a test case fix or enhancement? |
Normally, we don't require news entries for test changes, unless they are substansive. |
OK, I've removed it. |
@barneygale: Are you able to review this? It's a very simple change. |
Looks good to me. Let's give @barneygale some days to chime in, before landing this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay. This seems fine, thank you.
(not a blocking issue:) I suppose |
It's not a very accurate name, but it's already used in this way in many other places, so if we want to improve that I think it would be better done in a separate PR. |
@barneygale, @mhsmith: perhaps also consider consolidating the test setup of |
@erlend-aasland I don't mind too much either way, but there's a decent argument that violating DRY in test code is a Good Thing: https://mtlynch.io/good-developers-bad-tests/ |
|
… and Path.walk() (python#116058) Replace test.support.set_recursion_limit with test.support.infinite_recursion.
… and Path.walk() (python#116058) Replace test.support.set_recursion_limit with test.support.infinite_recursion.
test_walk_above_recursion_limit
uses absolute limits #116057