I have a test case which runs in both Windows and Linux environment. Textcase compares actual and generated csv file. Testcase passes if both files are equal otherwise fails. Testcase fails only in linux and passes in Windows.
import filecmp
assert filecmp.cmp(output_csv_file, actual_csv_file, shallow=False), “Testcase failed. Files are different”
On viewing the output file, contents of both files are same. Also, I tried with shallow parameter value been set to both True and False but fails in linux. How to make my testcase pass in linux?