From 70a072a68d945a7ea1688b2b9ea6704b9af8893f 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 ad9b77296bc..b8583992577 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