Skip to content

Conversation

chrstphrchvz
Copy link
Contributor

@chrstphrchvz chrstphrchvz commented May 12, 2023

@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 <[email protected]>
@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 <[email protected]>
@bedevere-bot bedevere-bot removed the needs backport to 3.12 only 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 <[email protected]>
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 <[email protected]>
@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