[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: 1.6rc3 ctypes python test suite

From: Arkadiusz Miskiewicz <arekm_at_maven.pl>
Date: Sat, 14 Mar 2009 20:20:13 +0100

On Saturday 14 of March 2009, David James wrote:
> 2009/3/12 David James <james82_at_gmail.com>:
> >> >> > Is this supposed to work correctly with python 2.6? (ctypesgen rev
> >> >> > 63):
> >> >> >
> >> >> > $ make check-ctypes-python
> >> >> > cd
>
> ...
>
> > Will Python 3.x really get rid of the UserString classes altogether?
> > Maybe this is a mistake on the part of Python developers as it breaks
> > compatibility.
> > In any case, if we need to fix this, rather than rewriting the
> > MutableString class, we could copy the MutableString class into ctypesgen
> > for forward compatibility with Python 2.6 and later.
> > http://svn.python.org/view/python/branches/release25-maint/Lib/UserString
> >.py?revision=66717&view=markup
>
> OK, I've copied the MutableString and UserString classes from Python
> 2.5 as of r69 of ctypesgen. I tested with Python 2.6 and it seems to
> work fine. Does it work for you, Arkadiusz?

Works now.

$ make check-ctypes-python
cd /home/users/arekm/rpm/BUILD/subversion-1.6.0-rc3/subversion/bindings/ctypes-python; \
          /bin/sh /home/users/arekm/rpm/BUILD/subversion-1.6.0-rc3/libtool --tag=CC --silent --mode=execute `for f in /home/users/arekm/rpm/BUILD/subversion-1.6.0-rc3/subversion/*/*.la; do echo -dlopen $f; done`
/usr/bin/python setup.py build --subversion="/usr" \
          --apr="/usr" --apr-util="/usr" \
          --ctypesgen="/usr/bin/ctypesgen.py" --svn-headers="/home/users/arekm/rpm/BUILD/subversion-1.6.0-rc3/subversion/include" \
          --cppflags="-D_FORTIFY_SOURCE=2 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr -I/usr/include/apr-util -I/usr/include -DQT_SHARED -D_REENTRANT -DQT_CORE_LIB -
DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB " --ldflags=""
running build
csvn/core/functions.py was not regenerated (output up-to-date)
running build_py
cd /home/users/arekm/rpm/BUILD/subversion-1.6.0-rc3/subversion/bindings/ctypes-python; \
          /bin/sh /home/users/arekm/rpm/BUILD/subversion-1.6.0-rc3/libtool --tag=CC --silent --mode=execute `for f in /home/users/arekm/rpm/BUILD/subversion-1.6.0-rc3/subversion/*/*.la; do echo -dlopen $f; done`
/usr/bin/python test/run_all.py
/home/users/arekm/rpm/BUILD/subversion-1.6.0-rc3/subversion/bindings/ctypes-python/csvn/repos.py:436: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(self.user is not None,
..........................
----------------------------------------------------------------------
Ran 26 tests in 64.930s

OK

There is only that assert warning. Tuple there is always evaluated as true.

> Cheers,
>
> David

-- 
Arkadiusz Miƛkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/
Received on 2009-03-14 20:21:07 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.