aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-04-26 12:30:51 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-04-26 12:30:51 -0400
commitc271726ed871c3a34c2d39ff6d67f22570548c21 (patch)
treebc4f60d7d5d284953376367ad9b3ddf7254f922a
parentd954de8b1f543ee8df0560ffc0a9ceec1bf72fae (diff)
downloadexternal_python_setuptools-c271726ed871c3a34c2d39ff6d67f22570548c21.tar.gz
external_python_setuptools-c271726ed871c3a34c2d39ff6d67f22570548c21.tar.bz2
external_python_setuptools-c271726ed871c3a34c2d39ff6d67f22570548c21.zip
That fixture passes the original dir, so set cwd separately.
-rw-r--r--test_ez_setup.py5
1 files changed, 4 insertions, 1 deletions
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