Changeset 3178:6d0f7b223a3a in livinglogic.python.xist

Show
Ignore:
Timestamp:
01/25/08 11:08:52 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix parsing test, now that MalformedCharRefWarning? is gone.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_parse.py

    r3144 r3178  
    5656    check_parseentities(source, result, prefixes=prefixes, parser=parserfactory()) 
    5757 
    58     warnings.filterwarnings("error", category=xsc.MalformedCharRefWarning) 
    5958    for bad in ("&", "&#x", "&&", "&#x;", "&#fg;", "&#999999999;", "&#;", "&#y;", "&#x;", "&#xy;"): 
    60         py.test.raises((xsc.MalformedCharRefWarning, expat.ExpatError), check_parseentities, bad, u"", prefixes=prefixes, parser=parserfactory()) 
     59        py.test.raises(expat.ExpatError, check_parseentities, bad, u"", prefixes=prefixes, parser=parserfactory()) 
    6160    py.test.raises(xsc.IllegalEntityError, check_parseentities, "&baz;", u"", prefixes=prefixes, parser=parserfactory()) 
    6261