From 3e7329ec56ce7d7e56ab421efb3f0b95c469df76 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Tue, 13 Aug 2024 14:06:36 +0100 Subject: [PATCH] test: remove testing of user warning --- neuroml/test/test_nml.py | 7 ------- 1 file changed, 7 deletions(-) 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