Fix Python bindings ns3.Object subclassing bug

This commit is contained in:
Gustavo J. A. M. Carneiro
2010-05-06 14:21:20 +01:00
parent e8bb9330b4
commit ce0dabd900
3 changed files with 13 additions and 1 deletions

View File

@@ -145,5 +145,13 @@ class TestSimulator(unittest.TestCase):
self.assertEqual(cmd.test_xxx, "123")
self.assertEqual(foo.test_foo, "xpto")
def testSubclass(self):
class MyNode(ns3.Node):
def __init__(self):
super(MyNode, self).__init__()
node = MyNode()
if __name__ == '__main__':
unittest.main()