Mailinglist Archive: zypp-devel (102 mails)

< Previous Next >
Re: [zypp-devel] [PATCH 3/3] Fix Python testcase for the Solver
  • From: Jan Blunck <jblunck@xxxxxxx>
  • Date: Tue, 17 Mar 2009 17:32:51 +0100
  • Message-id: <20090317163251.GZ23737@xxxxxxxxxxxxxxx>
On Tue, Mar 17, Klaus Kaempf wrote:

* Jan Blunck <jblunck@xxxxxxx> [Mar 17. 2009 15:50]:
On Tue, Mar 17, Jan Blunck wrote:

What would make sense would be:

def test_pool_iterate:
for s in self.pool:
assert s.pool() == self.pool

That must read as follows:

assert str(s.pool()) == str(self.pool)

No!
If you need workarounds like this, its a bug in the bindings.

Right.

(Missing 'equality' function for Pool in Python)

That should be done by SWIG automagically. It knows that it is working with
_Pool pointers so it should implement a __cmp()__ method for comparing them.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups