Skip to content
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-104411: Update test_getint for Tcl 9.0 #104412

Merged
merged 4 commits into from
Jun 6, 2023

Conversation

chrstphrchvz
Copy link
Contributor

@chrstphrchvz chrstphrchvz commented May 12, 2023

Lib/test/test_tcl.py Outdated Show resolved Hide resolved
Lib/test/test_tcl.py Outdated Show resolved Hide resolved
@terryjreedy
Copy link
Member

@serhiy-storchaka self.assertEqual(tcl.getint((' %#o ' % i).replace('o', '')), i) fails in tcl 9 for i == 2**31 - 1 == 2147483647 because tcl joins python in treating '017777777777' as decimal. (Note: the string expression is the same as ' %o ' % i. Should we skip the test or change it to test that tcl.getint(s) equals int(s) for such strings?

A NEWS entry is not needed for this trivial PR.
@serhiy-storchaka serhiy-storchaka merged commit 2c49c75 into python:main Jun 6, 2023
@miss-islington
Copy link
Contributor

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 6, 2023
(cherry picked from commit 2c49c75)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
@bedevere-bot
Copy link

GH-105356 is a backport of this pull request to the 3.12 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 6, 2023
(cherry picked from commit 2c49c75)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
@bedevere-bot bedevere-bot removed the needs backport to 3.12 bug and security fixes label Jun 6, 2023
@bedevere-bot
Copy link

GH-105357 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Jun 6, 2023
terryjreedy pushed a commit that referenced this pull request Jun 6, 2023
gh-104411: Update test_getint for Tcl 9.0 (GH-104412)
(cherry picked from commit 2c49c75)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
terryjreedy pushed a commit that referenced this pull request Jun 6, 2023
gh-104411: Update test_getint for Tcl 9.0 (GH-104412)
(cherry picked from commit 2c49c75)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
@chrstphrchvz chrstphrchvz deleted the patch-104411 branch June 6, 2023 20:19
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.

7 participants