From c271726ed871c3a34c2d39ff6d67f22570548c21 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 26 Apr 2016 12:30:51 -0400 Subject: That fixture passes the original dir, so set cwd separately. --- test_ez_setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_ez_setup.py b/test_ez_setup.py index c44308dc..49a578ea 100644 --- a/test_ez_setup.py +++ b/test_ez_setup.py @@ -1,9 +1,12 @@ +import py.path + import ez_setup def test_download(tmpdir_cwd): + cwd = py.path.local() ez_setup.download_setuptools() - res, = tmpdir_cwd.listdir() + res, = cwd.listdir() assert res.basename.startswith('setuptools-') assert res.basename.endswith('.zip') # file should be bigger than 64k -- cgit v1.2.3