summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-04-18 15:42:13 -0400
committerChris McDonough <chrism@plope.com>2012-04-18 15:42:13 -0400
commitff5a6a6b039c04f8d55c3ab513257d2aff8d5e9e (patch)
tree5e274fff3b3f890b9a0d326888a5427e53965974
parentaca78fe3f08ad31be2cc154301c95a318d74ead8 (diff)
downloadpyramid-ff5a6a6b039c04f8d55c3ab513257d2aff8d5e9e.tar.gz
pyramid-ff5a6a6b039c04f8d55c3ab513257d2aff8d5e9e.tar.bz2
pyramid-ff5a6a6b039c04f8d55c3ab513257d2aff8d5e9e.zip
try to fix windows test failure
-rw-r--r--pyramid/tests/test_scaffolds/test_copydir.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyramid/tests/test_scaffolds/test_copydir.py b/pyramid/tests/test_scaffolds/test_copydir.py
index 42edd9d23..68cefbe6e 100644
--- a/pyramid/tests/test_scaffolds/test_copydir.py
+++ b/pyramid/tests/test_scaffolds/test_copydir.py
@@ -170,9 +170,11 @@ class Test_makedirs(unittest.TestCase):
def test_makedirs_parent_dir(self):
import shutil
- target = "/tmp/nonexistent_dir/nonexistent_subdir"
+ import tempfile
+ tmpdir = tempfile.mkdtemp()
+ target = os.path.join(tmpdir, 'nonexistent_subdir')
self._callFUT(target, 2, None)
- shutil.rmtree("/tmp/nonexistent_dir")
+ shutil.rmtree(tmpdir)
class Test_support_functions(unittest.TestCase):