This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Michael.Felt
Recipients Michael.Felt, miss-islington, serhiy.storchaka
Date 2021-04-28.15:02:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619622123.92.0.678392912456.issue43659@roundup.psfhosted.org>
In-reply-to
Content
Dome some 'dumb' testing - and I hope this helps understand why it is failing:

With the the last two func() calls commented out, the function passes:

    def test_output_string(self):
        stdscr = self.stdscr
        encoding = stdscr.encoding
        # addstr()/insstr()
        for func in [stdscr.addstr, stdscr.insstr]:
            with self.subTest(func.__qualname__):
                stdscr.move(0, 0)
                func('abcd')
                func(b'abcd')
                s = 'à▒^▒ç▒^▒'
                try:
                    func(s)
                except UnicodeEncodeError:
                    self.assertRaises(UnicodeEncodeError, s.encode, encoding)
                func('abcd', curses.A_BOLD)
                # func(1, 2, 'abcd')
                # func(2, 3, 'abcd', curses.A_BOLD)
History
Date User Action Args
2021-04-28 15:02:03Michael.Feltsetrecipients: + Michael.Felt, serhiy.storchaka, miss-islington
2021-04-28 15:02:03Michael.Feltsetmessageid: <1619622123.92.0.678392912456.issue43659@roundup.psfhosted.org>
2021-04-28 15:02:03Michael.Feltlinkissue43659 messages
2021-04-28 15:02:03Michael.Feltcreate