~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Lib/test/test_pyexpat.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
567
567
            parser.Parse(xml, True)
568
568
            self.fail()
569
569
        except expat.ExpatError as e:
570
 
            self.assertEquals(str(e), 'no element found: line 2, column 1')
 
570
            self.assertEquals(str(e), 'unclosed token: line 2, column 0')
571
571
 
572
572
    def test2(self):
573
573
        xml = "<?xml version\xc2\x85='1.0'?>\r\n"