New PyBindGen, fixes python wrapper identity issue.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-08-23 22:35:10 +01:00
1 parent cd95f66344
commit abd6647112
3 files changed
+4 -8

No files matched your search

+1 -7
View File
@@ -114,13 +114,7 @@ class TestSimulator(unittest.TestCase):
c1 = csma.GetChannel()
c2 = csma.GetChannel()
## FIXME: it is a PyBindGen bug that comparison via hash
## functions is required. However it should be noted that
## hash(channel) here basically returns the self->obj pointer,
## so if hash(c1) == hash(c2) then we know for sure that c1
## and c2 are the same channel, even if with different python
## wrappers.
self.assertEqual(hash(c1), hash(c2))
self.assert_(c1 is c2)
if __name__ == '__main__':
unittest.main()