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 15:50:58 +0100
- Message-id: <20090317145058.GX23737@xxxxxxxxxxxxxxx>
On Tue, Mar 17, Jan Blunck wrote:
That must read as follows:
assert str(s.pool()) == str(self.pool)
SWIG is creating proxy objects for the real pool. Since the address of the
pool is included in the string representation this actually works.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
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)
SWIG is creating proxy objects for the real pool. Since the address of the
pool is included in the string representation this actually works.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |