~ubuntu-branches/ubuntu/utopic/python-docutils/utopic

« back to all changes in this revision

Viewing changes to test/test_nodes.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-12-20 10:24:09 UTC
  • Revision ID: package-import@ubuntu.com-20131220102409-ljkm3vtu2qu4kiey
Tags: 0.11-2ubuntu1
Add fix_element_test.diff: Since Python 3.3.3, 2to3 changes our already
existing Python3 specific test for the "dot" (•) symbol to a double-slash
like in the Python 2 version, breaking the test. Use the actual Unicode
symbol to prevent 2to3 from doing that, instead of \u2022.
(Closes: #732679)

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        if sys.version_info < (3,):
93
93
            self.assertEqual(str(element), '<Element mark="\\u2022"/>')
94
94
        else:
95
 
            self.assertEqual(str(element), '<Element mark="\u2022"/>')
 
95
            self.assertEqual(str(element), '<Element mark="•"/>')
96
96
        dom = element.asdom()
97
97
        self.assertEqual(dom.toxml(), u'<Element mark="\u2022"/>')
98
98
        dom.unlink()