Re: [xml] Missing line numbers in error handling



David Ascher said:
Daniel Veillard wrote:

On Fri, Mar 26, 2004 at 10:44:16AM -0500, David Ascher wrote:

While trying to expand the python/tests/tstLastError.py code to
test
validation and not just well-formedness, I'm finding a memory leak
from
the debugMemory call in tearDown.  Specifically, adding the
following test:

[...]

AssertionError: Memory leak 4415 bytes


[...]

1) Can others replicate?  (it's running against the latest windows
binary distribution, while the test is from the latest CVS
snapshot, if
that makes a difference).


  FYI, I never run Windows, I don't have a Licence for it.

I guess I was hoping that someone could replicate on any OS w/ the
Python bindings.

--david

FWIW, simply cutting/pasting your mod into a copy of tstLastError.py
from CVS head under Linux, I get

bill bbrack python $ ./tstLastError.py
..F
======================================================================
FAIL: Test a validation error: we get the last error only
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./tstLastError.py", line 91, in test3
    line=3)
  File "./tstLastError.py", line 38, in failUnlessXmlError
    self.failUnlessEqual(code,e.code())
  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
    raise self.failureException, \
AssertionError: 77 != 4

i.e. no "memory leak" problem occurs.

Bill




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]