Mailinglist Archive: zypp-devel (102 mails)

< Previous Next >
Re: [zypp-devel] [PATCH 3/3] Fix Python testcase for the Solver
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Tue, 17 Mar 2009 17:20:12 +0100
  • Message-id: <20090317162012.GA32401@xxxxxxxxxxxxx>
* 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.

(Missing 'equality' function for Pool in Python)


SWIG is creating proxy objects for the real pool. Since the address of the
pool is included in the string representation this actually works.

Yeah, but thats ugly ;-)

Klaus

---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups