summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-08-06 00:02:31 -0400
committerChris McDonough <chrism@plope.com>2012-08-06 00:02:31 -0400
commit88435e58b45b7c00387508bb2960f784d627bf00 (patch)
treef31d1b62e168615eaef65db150ba9ecbfe62dafc
parentadf32395eaef658bc9053037a9bed4b182397faf (diff)
downloadpyramid-88435e58b45b7c00387508bb2960f784d627bf00.tar.gz
pyramid-88435e58b45b7c00387508bb2960f784d627bf00.tar.bz2
pyramid-88435e58b45b7c00387508bb2960f784d627bf00.zip
coverage
-rw-r--r--pyramid/tests/test_scaffolds/test_copydir.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyramid/tests/test_scaffolds/test_copydir.py b/pyramid/tests/test_scaffolds/test_copydir.py
index 68cefbe6e..d757b837c 100644
--- a/pyramid/tests/test_scaffolds/test_copydir.py
+++ b/pyramid/tests/test_scaffolds/test_copydir.py
@@ -176,6 +176,14 @@ class Test_makedirs(unittest.TestCase):
self._callFUT(target, 2, None)
shutil.rmtree(tmpdir)
+ def test_makedirs_no_parent_dir(self):
+ import shutil
+ import tempfile
+ tmpdir = tempfile.mkdtemp()
+ target = os.path.join(tmpdir, 'nonexistent_subdir', 'non2')
+ self._callFUT(target, 2, None)
+ shutil.rmtree(tmpdir)
+
class Test_support_functions(unittest.TestCase):
def _call_html_quote(self, *arg, **kw):