From f8f22d29eebb2c8fab51fc6f6c0f00fc119532d5 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 12 Nov 2018 16:57:39 -0200 Subject: [PATCH] Use a custom cache directory for test_stepwise tests Otherwise the tests will use tox's env cache which makes them flaky --- testing/test_stepwise.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testing/test_stepwise.py b/testing/test_stepwise.py index ad9b77296..b85839925 100644 --- a/testing/test_stepwise.py +++ b/testing/test_stepwise.py @@ -41,6 +41,14 @@ def test_success(): """ ) + # customize cache directory so we don't use the tox's cache directory, which makes tests in this module flaky + testdir.makeini( + """ + [pytest] + cache_dir = .cache + """ + ) + return testdir