Skip to content

bpo-25130: Make unit-test about restricting the maximum number of nested blocks cpython-only #28002

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

Merged

Conversation

cfbolz
Copy link
Contributor

@cfbolz cfbolz commented Aug 27, 2021

PyPy and potentially other implementations have different or no
constraints on the number of blocks that can be statically nested. move
the doctest that checks for this behaviour into a unit test and mark it as
CPython-only.

In PyPy, the doctest happily looped forever, because there is no syntax error raised 😞

https://bugs.python.org/issue25130

PyPy and potentially other implementations have different or no
contraints on the number of blocks that can be statically nested. move
the test that checks for this behaviour into a unit test and mark it as
CPython-only.
@bedevere-bot bedevere-bot added awaiting review tests Tests in the Lib/test dir labels Aug 27, 2021
@serhiy-storchaka serhiy-storchaka changed the title Make unit-test about restricting the maximum number of nested blocks cpython-only bpo-25130: Make unit-test about restricting the maximum number of nested blocks cpython-only Aug 28, 2021
@serhiy-storchaka serhiy-storchaka added needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes labels Aug 28, 2021
@miss-islington
Copy link
Contributor

Thanks @cfbolz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @cfbolz and @serhiy-storchaka, I could not cleanly backport this to 3.9 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker eb263f9a356f5c5f21b8d5ce20bac92f31c40cad 3.9

@bedevere-bot
Copy link

GH-28016 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 28, 2021
…ted blocks cpython-only (pythonGH-28002)

PyPy and potentially other implementations have different or no
contraints on the number of blocks that can be statically nested. move
the test that checks for this behaviour into a unit test and mark it as
CPython-only.
(cherry picked from commit eb263f9)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
@serhiy-storchaka serhiy-storchaka added needs backport to 3.9 only security fixes and removed needs backport to 3.9 only security fixes labels Aug 28, 2021
@miss-islington
Copy link
Contributor

Thanks @cfbolz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry @cfbolz and @serhiy-storchaka, I had trouble checking out the 3.9 backport branch.
Please backport using cherry_picker on command line.
cherry_picker eb263f9a356f5c5f21b8d5ce20bac92f31c40cad 3.9

serhiy-storchaka pushed a commit to serhiy-storchaka/cpython that referenced this pull request Aug 28, 2021
…of nested blocks cpython-only (pythonGH-28002)

PyPy and potentially other implementations have different or no
contraints on the number of blocks that can be statically nested. move
the test that checks for this behaviour into a unit test and mark it as
CPython-only..
(cherry picked from commit eb263f9)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
@bedevere-bot
Copy link

GH-28017 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Aug 28, 2021
serhiy-storchaka pushed a commit that referenced this pull request Aug 28, 2021
…ted blocks cpython-only (GH-28002) (GH-28016)

PyPy and potentially other implementations have different or no
contraints on the number of blocks that can be statically nested. move
the test that checks for this behaviour into a unit test and mark it as
CPython-only.
(cherry picked from commit eb263f9)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
serhiy-storchaka added a commit that referenced this pull request Aug 28, 2021
…of nested blocks cpython-only (GH-28002) (GH-28017)

PyPy and potentially other implementations have different or no
contraints on the number of blocks that can be statically nested. move
the test that checks for this behaviour into a unit test and mark it as
CPython-only..
(cherry picked from commit eb263f9)

Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
mozillazg pushed a commit to mozillazg/pypy that referenced this pull request Aug 29, 2021
@serhiy-storchaka serhiy-storchaka removed their assignment Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants