Use a custom cache directory for test_stepwise tests
Otherwise the tests will use tox's env cache which makes them flaky
This commit is contained in:
		
							parent
							
								
									dc20dedbc7
								
							
						
					
					
						commit
						f8f22d29ee
					
				| 
						 | 
					@ -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
 | 
					    return testdir
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue