Menu

#115 Do not rely on faulty 2to3 string literal conversion behavior in test_nodes.ElementTests.test_empty

None
closed-fixed
nobody
None
5
2014-02-28
2013-12-21
No

Martin Pitt and Jakub Wilk have reported at http://bugs.debian.org/732679 that test_nodes.ElementTests.test_empty fails with Python 3 when test_nodes.py has been converted using a 2to3 version which has fixed http://bugs.python.org/issue18037. The affected code relies on \uXXXX sequences in Python 2 string literals to be passed through to the resulting Python 3 string literals, which is incorrect as "\u" denotes the same string as r"\u" in Python 2. The attached patch, proposed by Jakub Wilk, fixes the issue by using a unicode literal in the Python 2 code.

1 Attachments

Discussion

  • Günter Milde

    Günter Milde - 2014-02-28
    • status: open --> closed-fixed
     
  • Günter Milde

    Günter Milde - 2014-02-28

    Thanks you for the patch, it is now applied in the SVN repository.

     

Log in to post a comment.