[Test] Fixed an issue where text comparisons were incorrectly succeeding

The logic for comparing string representations of floats in blessed output files
was incorrect. This caused a number of tests that shouldn't have actually been
passing to indicate success. This error was introduced in r1318.
This commit is contained in:
Ray Speth 2013-04-24 21:47:13 +00:00
parent 5d353c1ad4
commit aade0ddb67

View file

@ -226,7 +226,8 @@ def compareTextFiles(env, file1, file2):
# All the values are sufficiently close, so replace the string
# so that the diff of this line will succeed
text2[i] = line1
if allMatch:
text2[i] = line1
# Try the comparison again
diff = list(difflib.unified_diff(text1, text2))