From 79e174cc372e969622125540ac3c8f7fa992d903 Mon Sep 17 00:00:00 2001 From: "Christian Y. Brenninkmeijer" Date: Fri, 12 Apr 2024 15:27:26 +0100 Subject: [PATCH] VersionStrings as simple Enum --- unittests/model_tests/neuron/test_synaptic_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/model_tests/neuron/test_synaptic_manager.py b/unittests/model_tests/neuron/test_synaptic_manager.py index ba1685b469..de49650bc6 100644 --- a/unittests/model_tests/neuron/test_synaptic_manager.py +++ b/unittests/model_tests/neuron/test_synaptic_manager.py @@ -104,7 +104,7 @@ def say_false(self, *args, **kwargs): def test_write_data_spec(): unittest_setup() - set_config("Machine", "versions", VersionStrings.ANY.value) + set_config("Machine", "versions", VersionStrings.ANY.text) writer = SpynnakerDataWriter.mock() # UGLY but the mock transceiver NEED generate_on_machine to be False AbstractGenerateConnectorOnMachine.generate_on_machine = say_false @@ -434,7 +434,7 @@ def test_pop_based_master_pop_table_standard( undelayed_indices_connected, delayed_indices_connected, n_pre_neurons, neurons_per_core, max_delay): unittest_setup() - set_config("Machine", "versions", VersionStrings.FOUR_PLUS.value) + set_config("Machine", "versions", VersionStrings.FOUR_PLUS.text) writer = SpynnakerDataWriter.mock() # Build a from list connector with the delays we want