diff --git a/tests/test_prog.py b/tests/test_prog.py index 028d4a02..0b2318f7 100755 --- a/tests/test_prog.py +++ b/tests/test_prog.py @@ -24,7 +24,12 @@ def has_gemmi(): '\n returncode:', e.returncode) return False assert v.startswith(b'gemmi 0.') - return gemmi is None or v.split()[1].decode() == gemmi.__version__ + prog_ver = v.split()[1].decode() + if gemmi and gemmi.__version__ != prog_ver: + print(f'NOTE: gemmi {prog_ver} in $PATH mismatches', + f'gemmi module {gemmi.__version__}. Skipping.') + return False + return True @unittest.skipIf(not has_gemmi(), "Program gemmi not found.") class TestProg(unittest.TestCase):