diff --git a/pynest/nest/tests/test_sp/test_disconnect.py b/pynest/nest/tests/test_sp/test_disconnect.py index 30512b7f4d..2d42e43aa7 100644 --- a/pynest/nest/tests/test_sp/test_disconnect.py +++ b/pynest/nest/tests/test_sp/test_disconnect.py @@ -83,14 +83,14 @@ def test_synapse_deletion_one_to_one_no_sp(self): if mpi_test: conns = self.comm.allgather(conns) conns = filter(None, conns) - assert len(conns) == 1 + assert len(list(conns)) == 1 nest.DisconnectOneToOne(neurons[0], neurons[2], syn_dict) conns = nest.GetConnections( [neurons[0]], [neurons[2]], syn_model) if mpi_test: conns = self.comm.allgather(conns) conns = filter(None, conns) - assert len(conns) == 0 + assert len(list(conns)) == 0 # Assert that one can not delete a non existent connection conns1 = nest.GetConnections( @@ -98,7 +98,7 @@ def test_synapse_deletion_one_to_one_no_sp(self): if mpi_test: conns1 = self.comm.allgather(conns1) conns1 = filter(None, conns1) - assert len(conns1) == 0 + assert len(list(conns1)) == 0 try: nest.DisconnectOneToOne(neurons[0], neurons[1], syn_dict) assertFail()