Skip to content

Commit

Permalink
clear filecmp cache
Browse files Browse the repository at this point in the history
  • Loading branch information
menon-karthik committed Oct 7, 2024
1 parent 578b50e commit 2900ca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_dirgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ def test_directed_graph_generation(setup_files):

generated_dot_file_path = tmp_path / (os.path.splitext(os.path.basename(input_file_path))[0] + "_directed_graph.dot")

filecmp.clear_cache()
assert filecmp.cmp(generated_dot_file_path, expected_dot_file_path), \
f"The generated dot file '{generated_dot_file_path}' does not match the expected dot file '{expected_dot_file_path}'."

if __name__ == "__main__":
pytest.main()
pytest.main()

0 comments on commit 2900ca6

Please sign in to comment.