[Python-modules-team] Bug#732679: test_nodes.ElementTests.test_empty fails for py3: "=?UTF-8?Q?=E2=80=A2?=" != "\\u2022"

Martin Pitt mpitt at debian.org
Fri Dec 20 11:06:03 UTC 2013


Hey Jakub,

Jakub Wilk [2013-12-20 10:36 +0100]:
> The last line should have probably been:
> 
> self.assertEqual(str(element), u'<Element mark="\u2022"/>')
> [...]
> ...then it would be correctly converted to:
> 
> self.assertEqual(str(element), '<Element mark="\u2022"/>')

Ah, that's even more elegant indeed.

> In the past it worked only by accident, due to a bug:
> http://bugs.python.org/issue18037

Thanks for pointing out the root cause!

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



More information about the Python-modules-team mailing list