diff --git a/neuroml/test/test_nml.py b/neuroml/test/test_nml.py index f2ffd85..99134e2 100644 --- a/neuroml/test/test_nml.py +++ b/neuroml/test/test_nml.py @@ -73,10 +73,6 @@ def test_generic_add_single(self): # Success: returns object self.assertIsNotNone(doc.add(cell)) - # Already added, so throw exception - with self.assertWarns(UserWarning): - doc.add(cell) - # Success self.assertIsNotNone(doc.add(cell1)) @@ -164,9 +160,6 @@ def test_add_to_container(self): pop3 = neuroml.Population(id="unique") network.add(pop3) - # warning because this is already added - with self.assertWarns(UserWarning): - network.add(pop3) # Note that for Python, this is a new object # So we can add it again