]> granicus.if.org Git - python/commit
bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Feb 2018 20:34:52 +0000 (12:34 -0800)
committerGitHub <noreply@github.com>
Mon, 12 Feb 2018 20:34:52 +0000 (12:34 -0800)
commit38b4dd7f83fbdce6fe970088cd89b80f074a13f6
treebbd619f8b48421600573f8da9e02f884660d6a1e
parent0442599961f966a3dc7f3fe6a3c0d5765fcf2082
bpo-32826: Add "encoding=utf-8" to open() in idle_test/test_help_about. (GH-5639)

GUI test test_file_buttons() only looks at initial ascii-only lines,
but failed on systems where open() defaults to 'ascii' because
readline() internally reads and decodes far enough ahead to encounter
a non-ascii character in CREDITS.txt.
(cherry picked from commit f34e03ec0ea6a4cef8d966087c77e616c4a5893b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/idle_test/test_help_about.py
Misc/NEWS.d/next/IDLE/2018-02-12-11-05-22.bpo-32826.IxNZrk.rst [new file with mode: 0644]