[reportlab-users] new pyRXP

Robin Becker reportlab-users@reportlab.com
Thu, 10 Apr 2003 15:35:46 +0100


With slight modification of the test_xmltestsuite.py that Stuart posted
and using the current pyRXPU I get this with win32/python2.2

xmltest.zip contains the test files. I have placed it at
http://www.reportlab.com/ftp/xmltest.zip


F...............................................................................................
................................................................................................
..............................F.....................E...........................................
.....................................................................................
======================================================================
ERROR: test_Valid_not-sa_022 (__main__.test_pyRXPU)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python\reportlab\rl_addons\pyRXP\test\test_xmltestsuite.py", line 170, in doTest
    self._test_valid(inname,outname)
  File "C:\Python\reportlab\rl_addons\pyRXP\test\test_xmltestsuite.py", line 106, in _test_valid
    inxml = self.getcanonical(inname)
  File "C:\Python\reportlab\rl_addons\pyRXP\test\test_xmltestsuite.py", line 66, in getcanonical
    return self._getcan(self.parse(filename))
  File "C:\Python\reportlab\rl_addons\pyRXP\test\test_xmltestsuite.py", line 53, in parse
    return parser.parse(xml)
Error: Error: [ of conditional section in different entity from <![
 in entity "e" defined at line 1 char 1 of file:///C:/Python/reportlab/rl_addons/pyRXP/test/xmlt
est/valid/not-sa/022.ent
 in unnamed entity at line 3 char 8 ofParse Failed!


======================================================================
FAIL: test_InvalidParse_001 (__main__.test_pyRXPU)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python\reportlab\rl_addons\pyRXP\test\test_xmltestsuite.py", line 178, in doTest
    self._test_invalid_parse(inname)
  File "C:\Python\reportlab\rl_addons\pyRXP\test\test_xmltestsuite.py", line 116, in
_test_invalid_parse
    self.fail('Failed to parse %r in non-validating mode' % inname)
  File "C:\Python\lib\unittest.py", line 254, in fail
    raise self.failureException, msg
AssertionError: Failed to parse 'C:\\Python\\reportlab\\rl_addons\\pyRXP\\test\\xmltest\\invalid
\\001.xml' in non-validating mode

======================================================================
FAIL: test_Valid_ext-sa_014 (__main__.test_pyRXPU)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python\reportlab\rl_addons\pyRXP\test\test_xmltestsuite.py", line 170, in doTest
    self._test_valid(inname,outname)
  File "C:\Python\reportlab\rl_addons\pyRXP\test\test_xmltestsuite.py", line 110, in _test_valid
    self.assertEqual(inxml,outxml)
  File "C:\Python\lib\unittest.py", line 286, in failUnlessEqual
    raise self.failureException, \
AssertionError: u'<doc>data</doc>' != u'<doc>\ufeffdata</doc>'

----------------------------------------------------------------------
Ran 373 tests in 1.162s

FAILED (failures=2, errors=1)


[ Section: 1/1 File: test_xmltestsuite.py UUencoded by: Turnpike Integrated Version 5.01 U ]

begin 644 test_xmltestsuite.py
M(R$O=7-R+V)I;B]E;G8@<'ET:&]N#0HG)R<-"B1)9#H@=&5S=%]X;6QT97-T
M<W5I=&4N<'DL=B`Q+C$@,C`P,R\P,B\P."`Q-CHS-3HS.2!Z96X@17AP("0-
M"E1E<W0@<&%R<VEN9R!A;F0@=F%L:61A=&EO;B!A9V%I;G-T($IA;65S($-L
M87)K)W,@=&5S="!C87-E<RP-"F%S(&1O=VYL;V%D960@9G)O;2!H='1P.B\O
M=W=W+FIC;&%R:RYC;VTO>&UL+PT*5&AE("YZ:7`@9FEL92!S:&]U;&0@8F4@
M:6X@=&AE('-A;64@9&ER96-T;W)Y(&%S('1H:7,@<V-R:7!T+@T*3F]T92!T
M:&%T('1H92`N>FEP(&9I;&4@8V%N(&)E(&9R965L>2!D:7-T<FEB=71E9"!I
M;B!U;FUO9&EF:65D(&9O<FT-"G-O(&ET(&-O=6QD(&)E(&%D9&5D('1O('1H
M92!P>5)84"!D:7-T<FEB=71I;VXN#0HG)R<-"@T*7U]R8W-?:61?7R`@/2`G
M)$ED.B!T97-T7WAM;'1E<W1S=6ET92YP>2QV(#$N,2`R,#`S+S`R+S`X(#$V
M.C,U.C,Y('IE;B!%>'`@)"<-"E]?=F5R<VEO;E]?(#T@)R12979I<VEO;CH@
M,2XQ("0G6S$Q.BTR70T*7U]A=71H;W)?7R`]("=3='5A<G0@0FES:&]P(#QS
M='5A<G1`<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`@("`@("!R971D:7(@/2!O<RYG971C=V0H*0T*("`@("`@("!D+&X@
M/2!O<RYP871H+G-P;&ET*&9I;&5N86UE*0T*("`@("`@("!O<RYC:&1I<BAD
M*0T*("`@("`@("!T<GDZ#0H@("`@("`@("`@("!F(#T@;W!E;BAN*0T*("`@
M("`@("`@("`@>&UL(#T@9BYR96%D*"D-"B`@("`@("`@("`@(')E='5R;B!P
M87)S97(N<&%R<V4H>&UL*0T*("`@("`@("!F:6YA;&QY.@T*("`@("`@("`@
M("`@=')Y.@T*("`@("`@("`@("`@("`@(&8N8VQO<V4H*0T*("`@("`@("`@
M("`@97AC97!T.@T*("`@("`@("`@("`@("`@('!A<W,-"B`@("`@("`@("`@
M(&]S+F-H9&ER*')E=&1I<BD-"B`@("`@("`@("`@(&EF(&1E8G5G.B!P<FEN
M="`^/B!S>7,N<W1D97)R+"=$;VYE('!A<G-I;F<@("`E<R<@)2!F:6QE;F%M
M90T*("`@("`@("`@("`@:68@9&5B=6<Z('!R:6YT(#X^('-Y<RYS=&1E<G(L
M)STG*C8P#0H@("`@("`@("`@("!I9B!D96)U9SH@=&EM92YS;&5E<"@Q*0T*
M#0H@("`@9&5F(&=E=&-A;F]N:6-A;"AS96QF+&9I;&5N86UE*3H-"B`@("`@
M("`@)R<G(%!A<G-E(&EN('1H92!N86UE9"!F:6QE+"!A;F0@<F5T=7)N(&ET
M(&%S(&-A;F]N:6-A;"!834P@)R<G#0H@("`@("`@(')E='5R;B!S96QF+E]G
M971C86XH<V5L9BYP87)S92AF:6QE;F%M92DI#0H-"B`@("!D968@7V=E=&-A
M;BAS96QF+&YO9&4I.@T*("`@("`@("!I9B!T>7!E*&YO9&4I(&ES('1Y<&4H
M6UTI.B!R971U<FX@)R<N:F]I;BAM87`H<V5L9BY?9V5T8V%N+"!N;V1E*2D-
M"B`@("`@("`@:68@='EP92AN;V1E*2!I;B`H='EP92@G)RDL='EP92AU)R<I
M*3H-"B`@("`@("`@("`@(')E='5R;B!S96QF+E]Q=6]T92AN;V1E*0T*#0H@
M("`@("`@('1A9RQA='1R<RQK:61S+&IU;FL@/2!N;V1E#0H-"B`@("`@("`@
M:68@=&%G(#T]('-E;&8N;6]D+F-O;6UE;G1486=.86UE.@T*("`@("`@("`@
M("`@<F5T=7)N('4G/"$M+25S+2T^)R`E("AK:61S6S!=*0T*("`@("`@("!E
M;&EF('1A9R`]/2!S96QF+FUO9"YP:51A9TYA;64Z#0H@("`@("`@("`@("!R
M971U<FX@=2<\/R5S("5S/SXG("4@*&%T=')S6R=N86UE)UTL:VED<ULP72D-
M"@T*("`@("`@("!I9B!A='1R<R!I<R!.;VYE.@T*("`@("`@("`@("`@871T
M<G,@/2`G)PT*("`@("`@("!E;'-E.@T*("`@("`@("`@("`@:V5Y<R`](&%T
M=')S+FME>7,H*0T*("`@("`@("`@("`@:V5Y<RYS;W)T*"D@(R!!='1R:6)U
M=&5S(&EN(&QE>&EC86P@;W)D97(-"B`@("`@("`@("`@(&%T=')S(#T@)R`G
M+FIO:6XH#0H@("`@("`@("`@("`@("`@6R<E<STB)7,B)R`E("AK+'-E;&8N
M7W%U;W1E*&%T=')S6VM=*2D@9F]R(&L@:6X@:V5Y<UT-"B`@("`@("`@("`@
M("`@("`I#0H@("`@("`@("`@("!I9B!A='1R<SH-"B`@("`@("`@("`@("`@
M("!A='1R<R`]("<@)R`K(&%T=')S#0H-"B`@("`@("`@=&5X="`]("<G+FIO
M:6XH6W-E;&8N7V=E=&-A;BAK:60I(&9O<B!K:60@:6X@:VED<UTI#0H-"B`@
M("`@("`@<F5T=7)N("<\)7,E<SXE<SPO)7,^)R`E("AT86<L871T<G,L=&5X
M="QT86<I#0H-"B`@("!D968@7W%U;W1E*'-E;&8L='AT*3H-"B`@("`@("`@
M='AT(#T@='AT+G)E<&QA8V4H)R8G+"<F86UP.R<I#0H@("`@("`@('1X="`]
M('1X="YR97!L86-E*"<\)RPG)FQT.R<I#0H@("`@("`@('1X="`]('1X="YR
M97!L86-E*"<^)RPG)F=T.R<I#0H@("`@("`@('1X="`]('1X="YR97!L86-E
M*"<B)RPG)G%U;W0[)RD-"B`@("`@("`@='AT(#T@='AT+G)E<&QA8V4H)UQX
M,#DG+"<F(SD[)RD-"B`@("`@("`@='AT(#T@='AT+G)E<&QA8V4H)UQX,&$G
M+"<F(S$P.R<I#0H@("`@("`@('1X="`]('1X="YR97!L86-E*"=<>#!D)RPG
M)B,Q,SLG*0T*("`@("`@("!R971U<FX@='AT#0H-"B`@("!D968@7W1E<W1?
M=F%L:60H<V5L9BQI;FYA;64L;W5T;F%M92DZ#0H@("`@("`@(&EN>&UL(#T@
M<V5L9BYG971C86YO;FEC86PH:6YN86UE*0T*("`@("`@("!F(#T@8V]D96-S
M+F]P96XH;W5T;F%M92QM;V1E/2=R)RQE;F-O9&EN9STG=71F."<I#0H@("`@
M("`@(&]U='AM;"`](&8N<F5A9"@I#0H@("`@("`@(&8N8VQO<V4H*0T*("`@
M("`@("!S96QF+F%S<V5R=$5Q=6%L*&EN>&UL+&]U='AM;"D-"@T*("`@(&1E
M9B!?=&5S=%]I;G9A;&ED7W!A<G-E*'-E;&8L:6YN86UE*3H-"B`@("`@("`@
M=')Y.@T*("`@("`@("`@("`@<V5L9BYP87)S92AI;FYA;64L5F%L:61A=&4]
M,"D-"B`@("`@("`@97AC97!T('-E;&8N;6]D+F5R<F]R+'@Z#0H@("`@("`@
M("`@("!S96QF+F9A:6PH)T9A:6QE9"!T;R!P87)S92`E<B!I;B!N;VXM=F%L
M:61A=&EN9R!M;V1E)R`E(&EN;F%M92D-"@T*("`@(&1E9B!?=&5S=%]I;G9A
M;&ED7W9A;&ED871E*'-E;&8L:6YN86UE*3H-"B`@("`@("`@=')Y.@T*("`@
M("`@("`@("`@<V5L9BYP87)S92AI;FYA;64L5F%L:61A=&4],2D-"B`@("`@
M("`@("`@('-E;&8N9F%I;"@G1F%I;&5D('1O(&1E=&5C="!V86QI9&ET>2!E
M<G)O<B!I;B`E<B<@)2!I;FYA;64I#0H@("`@("`@(&5X8V5P="!S96QF+FUO
M9"YE<G)O<CH-"B`@("`@("`@("`@('!A<W,-"@T*("`@(&1E9B!?=&5S=%]N
M;W1W9BAS96QF+&EN;F%M92DZ#0H@("`@("`@('1R>3H-"B`@("`@("`@("`@
M('-E;&8N<&%R<V4H:6YN86UE+%9A;&ED871E/3`I#0H@("`@("`@("`@("!S
M96QF+F9A:6PH#0H@("`@("`@("`@("`@("`@)T9A:6QE9"!T;R!D971E8W0@
M=&AA="`E<B!W87,@;F]T('=E;&P@9F]R;65D)R`E(&EN;F%M90T*("`@("`@
M("`@("`@("`@("D-"B`@("`@("`@97AC97!T('-E;&8N;6]D+F5R<F]R.@T*
M("`@("`@("`@("`@<&%S<PT*#0ID968@8G5I;&1U<%]T97-T*&-L<SUT97-T
M7W!Y4EA052DZ#0H@("`@)R<G($%D9"!T97-T(&UE=&AO9',@=&\@=&AE(%1E
M<W1#87-E("<G)PT*("`@(&-L<RYV86QI9"`](%M=#0H@("`@8VQS+FEN=F%L
M:60@/2!;70T*("`@(&-L<RYN;W1W9B`](%M=#0H@("`@=&5S=&1I<B`](&]S
M+G!A=&@N9&ER;F%M92A?7V9I;&5?7RD-"B`@("!Z:7!F(#T@>FEP9FEL92Y:
M:7!&:6QE*&]S+G!A=&@N:F]I;BAT97-T9&ER+"=X;6QT97-T+GII<"<I*0T*
M("`@(&9O<B!Z:7!N86UE(&EN('II<&8N;F%M96QI<W0H*3H-"@T*("`@("`@
M("`C($5X=')A8W0@=&AE(&9I;&5S(&EF('1H97D@9&]N)W0@86QR861Y(&5X
M:7-T#0H@("`@("`@(&]S;F%M92`](&]S+G!A=&@N:F]I;B@J>FEP;F%M92YS
M<&QI="@G+R<I*2`C($9O<B!N;VXM=6YI>&5S#0H@("`@("`@(&]S;F%M92`]
M(&]S+G!A=&@N:F]I;BAT97-T9&ER+&]S;F%M92D-"B`@("`@("`@9&ER(#T@
M;W,N<&%T:"YD:7)N86UE*&]S;F%M92D-"B`@("`@("`@:68@;F]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
M(&]S+G!A=&@N<W!L:70H;W,N<&%T:"YS<&QI="AI;FYA;64I6S!=*5LQ70T*
M("`@("`@("!M;F%M92`]("=T97-T7U9A;&ED7R5S7R4P,V0G("4@*&1I<BQN
M=6TI#0H@("`@("`@(&1E9B!D;U1E<W0H<V5L9BQI;FYA;64]:6YN86UE+&]U
M=&YA;64];W5T;F%M92DZ#0H@("`@("`@("`@("!S96QF+E]T97-T7W9A;&ED
M*&EN;F%M92QO=71N86UE*0T*("`@("`@("!S971A='1R*&-L<RQM;F%M92QD
M;U1E<W0I#0H-"B`@("`C($%D9"`G:6YV86QI9"<@=&5S=',-"B`@("!F;W(@
M:6YN86UE(&EN(&-L<RYI;G9A;&ED.@T*("`@("`@("!N=6T@/2!I;G0H;W,N
M<&%T:"YS<&QI=&5X="AO<RYP871H+F)A<V5N86UE*&EN;F%M92DI6S!=*0T*
M("`@("`@("!M;F%M92`]("=T97-T7TEN=F%L:61087)S95\E,#-D)R`E("AN
M=6TI#0H@("`@("`@(&1E9B!D;U1E<W0H<V5L9BQI;FYA;64]:6YN86UE*3H-
M"B`@("`@("`@("`@('-E;&8N7W1E<W1?:6YV86QI9%]P87)S92AI;FYA;64I
M#0H@("`@("`@('-E=&%T='(H8VQS+&UN86UE+&1O5&5S="D-"B`@("`@("`@
M;6YA;64@/2`G=&5S=%]);G9A;&ED5F%L:61A=&5?)3`S9"<@)2`H;G5M*0T*
M("`@("`@("!D968@9&]497-T*'-E;&8L:6YN86UE/6EN;F%M92DZ#0H@("`@
M("`@("`@("!S96QF+E]T97-T7VEN=F%L:61?=F%L:61A=&4H:6YN86UE*0T*
M("`@("`@("!S971A='1R*&-L<RQM;F%M92QD;U1E<W0I#0H-"B`@("`C($%D
M9"`G;F]T('=E;&QF;W)M960G('1E<W1S#0H@("`@9F]R(&EN;F%M92!I;B!C
M;',N;F]T=V8Z#0H@("`@("`@(&YU;2`](&EN="AO<RYP871H+G-P;&ET97AT
M*&]S+G!A=&@N8F%S96YA;64H:6YN86UE*2E;,%TI#0H@("`@("`@(&1I<B`]
M(&]S+G!A=&@N<W!L:70H;W,N<&%T:"YS<&QI="AI;FYA;64I6S!=*5LQ70T*
M("`@("`@("!M;F%M92`]("=T97-T7TYO=%=E;&Q&;W)M961?)7-?)3`S9"<@
M)2`H9&ER+&YU;2D-"B`@("`@("`@9&5F(&1O5&5S="AS96QF+&EN;F%M93UI
M;FYA;64I.@T*("`@("`@("`@("`@<V5L9BY?=&5S=%]N;W1W9BAI;FYA;64I
M#0H@("`@("`@('-E=&%T='(H8VQS+&UN86UE+&1O5&5S="D-"B`@("`@("`@
M#0IB=6EL9'5P7W1E<W0H*0T*#0II9B!?7VYA;65?7R`]/2`G7U]M86EN7U\G
8.@T*("`@('5N:71T97-T+FUA:6XH*0T*
`
end

sum -r/size 8482/9185 section (from "begin" to "end")
sum -r/size 54072/6639 entire input file
xmltest.zip contains the test files. I have placed it at
http://www.reportlab.com/ftp/xmltest.zip
-- 
Robin Becker