[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:
parent
5d353c1ad4
commit
aade0ddb67
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue