when running pytest --flake-finder to find possible flaky tests, the test test_cache_del() run multiple times, the key was deleted in the previous run so if we run it again it will throw an error. It also fails if only run this specific function without running previous tests. So it is better to assign key-value pair right before the del statement.
when running pytest --flake-finder to find possible flaky tests, the test
test_cache_del()
run multiple times, the key was deleted in the previous run so if we run it again it will throw an error. It also fails if only run this specific function without running previous tests. So it is better to assign key-value pair right before thedel
statement.