Skip to content

Tkinter: test_getint incompatible with Tcl 9.0 #104411

Closed
@chrstphrchvz

Description

@chrstphrchvz

TIP 114 means that as of Tcl 9.0, integers are only treated as octal when the 0o prefix is specified; a leading 0 by itself is no longer sufficient. This change partially breaks test_getint:

======================================================================
FAIL: test_getint (test.test_tcl.TclTest.test_getint)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/user/git/cpython/Lib/test/test_tcl.py", line 145, in test_getint
    self.assertEqual(tcl.getint((' %#o ' % i).replace('o', '')), i)
AssertionError: 17777777777 != 2147483647

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions