From f613a5576ae4d32b38ec41a5c863590478c7e8d3 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 11 Oct 2024 09:43:47 +0100 Subject: [PATCH] fix conda release --- Wrappers/Python/test/test_version.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Wrappers/Python/test/test_version.py b/Wrappers/Python/test/test_version.py index f69c4c967b..1125a5d05a 100644 --- a/Wrappers/Python/test/test_version.py +++ b/Wrappers/Python/test/test_version.py @@ -46,4 +46,7 @@ def test_version_num_commit(self): def test_version_commit_hash(self): from cil import version self.assertTrue(isinstance(version.commit_hash, str)) - self.assertEqual(version.commit_hash[0], 'g') + try: # tagged release + self.assertEqual((version.commit_hash, version.num_commit), ('None', 0)) + except AssertionError: # dev build + self.assertEqual(version.commit_hash[0], 'g')