source: exist/trunk/python/elementtree-1.3a6-20070310-badc/unittests/test_xfail.py @ 3578

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/python/elementtree-1.3a6-20070310-badc/unittests/test_xfail.py@3578
Revision 3578, 984 bytes checked in by pjkersha, 11 years ago (diff)

Latest releases from Fredrik Lundh. 10 March release has exclusive C14N support with namespace prefixes.

Line 
1# $Id: test_xfail.py 3342 2007-12-19 20:14:46Z fredrik $
2# expected failures (to be fixed some day)
3
4from support import *
5
6def find():
7    r"""
8
9    Positional predicate on * doesn't work properly.
10
11    >>> note("The following test will print a FutureWarning message:")
12    >>> elem = SAMPLE_XML
13    >>> summarize_list(elem.findall(".//*[1]"))
14    ['tag#1', 'section', 'tag#inner']
15
16    # should be ['tag#1', 'tag#inner']
17
18    Anchored searches on the root element doesn't work.
19
20    >>> summarize_list(ET.ElementTree(elem).findall("/tag"))
21    ['tag#1', 'tag#2']
22
23    FIXME: ET's Path module handles this case incorrectly; the above
24    gives a warning in 1.3, and the behaviour will be modified in 1.4.
25
26    """
27
28def write():
29    r"""
30
31    Non-ASCII-compatible output encodings don't work (use transcoding
32    instead).
33
34    >>> elem = ET.XML("<xml/>")
35    >>> ET.tostring(elem, encoding='utf-16')
36    "<?xml version='1.0' encoding='utf-16'?>\n<\xff\xfex\x00m\x00l\x00 />"
37    """
Note: See TracBrowser for help on using the repository browser.