diff --git a/binarycpython/tests/test_functions.py b/binarycpython/tests/test_functions.py
index b6cb2fe503c77c71b348ddd2c66e67156de3ec3b..d986cb6311c267a0a25f3bdf88a954cc69e2bfb5 100644
--- a/binarycpython/tests/test_functions.py
+++ b/binarycpython/tests/test_functions.py
@@ -242,7 +242,9 @@ class test_parse_binary_c_version_info(unittest.TestCase):
 
         if parsed_info["macros"]["NUCSYN"] == "on":
             self.assertIsNotNone(parsed_info["isotopes"])
-            self.assertIsNotNone(parsed_info["nucleosynthesis_sources"])
+
+            if parsed_info['macros']["NUCSYN_ID_SOURCES"] == "on":
+                self.assertIsNotNone(parsed_info["nucleosynthesis_sources"])
 
 
 class test_output_lines(unittest.TestCase):