From b60f601cc70eb03aab64410c6c6295fc5980be25 Mon Sep 17 00:00:00 2001 From: burnysc2 Date: Sat, 3 Aug 2024 03:27:42 +0200 Subject: [PATCH] Enable 'test_protobuf_implementation' again but disable for macOS --- test/test_pickled_data.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/test_pickled_data.py b/test/test_pickled_data.py index ada1b0c9..c1b8e11b 100644 --- a/test/test_pickled_data.py +++ b/test/test_pickled_data.py @@ -69,12 +69,11 @@ def get_map_specific_bot(map_path: Path) -> BotAI: return build_bot_object_from_pickle_data(*data) -# TODO Fixme -# def test_protobuf_implementation(): -# """Make sure that cpp is used as implementation""" -# # Doesn't seem to be implemented in newer python versions -# if sys.version_info.major == 3 and sys.version_info.minor < 10: -# assert api_implementation.Type() == "cpp" +def test_protobuf_implementation(): + """Make sure that cpp is used as implementation""" + # Doesn't seem to be implemented in newer python versions + if sys.version_info.major == 3 and sys.version_info.minor < 10 and sys.platform != "darwin": + assert api_implementation.Type() == "cpp" def test_bot_ai():