From 6341ca53543d54b982799ef2dc3c3e8deebb3f44 Mon Sep 17 00:00:00 2001 From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu> Date: Mon, 10 Aug 2020 20:36:18 -0500 Subject: [PATCH] Convert string to int for range checking in consistency test --- workflow/tests/test_consistency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/tests/test_consistency.py b/workflow/tests/test_consistency.py index 5b8b803..073b128 100644 --- a/workflow/tests/test_consistency.py +++ b/workflow/tests/test_consistency.py @@ -24,7 +24,7 @@ def readAssigned(fileAssigned,fileExpectAssigned): expect = open(fileExpectAssigned, "r") lineAssigned = assigned.readline() lineExpect = expect.readline() - if lineAssigned.strip() < (lineExpect.strip()+(lineExpect.strip()*0.00001)) and lineAssigned.strip() > (lineExpect.strip()-(lineExpect.strip()*0.00001)): + if int(lineAssigned.strip()) < (int(lineExpect.strip())+(int(lineExpect.strip())*0.00001)) and int(lineAssigned.strip()) > (int(lineExpect.strip())-(int(lineExpect.strip())*0.00001)): data = True return data -- GitLab