17 Mar
2009
17 Mar
'09
16:20
* Jan Blunck
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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org