On Mon, Sep 29, 2003 at 01:53:58PM -0500, Nicholas Riley wrote:
> On Mon, Sep 29, 2003 at 06:35:35PM +0100, Mikhail Sobolev wrote:
> > Can you please be a bit more specific: did you change the files outside
> > of mk4py?  I mean, can I just take the tree that corresponds to the
> > python interface and build it against the library installed in my
> > system (debian unstable)?
> 
> No, the Python interface actually requires it be built from a Metakit
> build tree - it links directly against the individual Metakit object
> files, instead of against the Metakit library as a whole.  So
> Mk4py.{so,sl,dll} ends up containing the Metakit library as well as
> the Python interface.  This was part of the setup.py script before I
> changed it, so I assumed there was some good reason for it and didn't
> change it.  Perhaps I was wrong. :)
This actually were two questions :))  The first one: did you change any
files outside of mk4py distribution?  And the answer seems to be yes.

I tried to re-built the package by replacing _only_ python directory,
and it seemed to be OK (one of the changes -- src/view.cpp -- was just a
cosmetic one, as for the other one -- src/column.cpp -- I took the risk
of not implementing it; also I tweaked with the configure stuff
directly).

I did want to test, so I installed python2.3-unit package (which was not
installed on my system) and replaced the regrtest.py file with the one
you offer on your website.

Here comes my question: the python setup.py test gave no errors.
However when I came to the test subdirectory and tried to run
test_string.py file directly, it gave me the attached errors.  I wonder
whether it's serious at all?  (Sorry I do not know a lot about the
testing framework implemented in Python.)

--
Misha
PASS: rejected {'a': 3, 'b': ''}
      as expected <exceptions.TypeError> Not a sequence
PASS: rejected {'a': '\x00', 'b': 'hi\x00'}
      as expected <exceptions.ValueError> string contains embedded nulls; try 'B' type
PASS: rejected {'a': 'abcdabcdabcd\x00hi', 'b': 'lo'}
      as expected <exceptions.ValueError> string contains embedded nulls; try 'B' type
PASS: rejected {'a': '\x00\x00hi', 'b': 'lo'}
      as expected <exceptions.ValueError> string contains embedded nulls; try 'B' type
FAIL: append {'a': u'hi there', 'b': 'hi'}
      got not a Python string exceptions.TypeError
FAIL: append {'a': u'\u20ac', 'b': 'hi'}
      got not a Python string exceptions.TypeError
FAIL: append {'a': u'Sample\u20acTesting', 'b': ''}
      got not a Python string exceptions.TypeError
FAIL: append {'a': u'Sample\x00blahblah', 'b': 'yo'}
      got not a Python string exceptions.TypeError expected exceptions.ValueError
VIEW CONTENTS:
 a                  b              
 -----------------  ---------------
                                   
 asdasdfasdfasdfsa  [EMAIL PROTECTED]@#$%^&*()
                    Б┌╛Hi there    
 -----------------  ---------------
 Total: 3 rows
PASS: retrieved {'a': '', 'b': ''}
PASS: retrieved {'a': 'asdasdfasdfasdfsa', 'b': '[EMAIL PROTECTED]@#$%^&*()'}
PASS: retrieved {'a': '', 'b': '\xe2\x82\xacHi there'}
Traceback (most recent call last):
  File "test_string.py", line 31, in ?
    v.finished()
  File "/var/home/mss/debian/libmetakit2.4.9.2-2.4.9.2/python/test/mktestsupport.py", 
line 147, in finished
    self.failure.assess()
  File "/var/home/mss/debian/libmetakit2.4.9.2-2.4.9.2/python/test/mktestsupport.py", 
line 51, in assess
    raise TestFailed(
test.test_support.TestFailed: 4 failures; run in verbose mode for details

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to