diff --git a/python/tests/beagle_numba.py b/python/tests/beagle_numba.py index e364f669c8..a792e66b90 100644 --- a/python/tests/beagle_numba.py +++ b/python/tests/beagle_numba.py @@ -99,10 +99,11 @@ def check_data(ref_h, query_h): :return: True if alleles in query are in reference. :rtype: bool """ + _MISSING = -1 m = ref_h.shape[0] assert m == len(query_h), "Reference and query differ in length." for i in range(m): - if query_h[i] == -1: + if query_h[i] == _MISSING: continue else: if query_h[i] not in ref_h[i, :]: