Skip to content
Snippets Groups Projects
Commit 1a51f66f authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

unit test for tempdir

parent 126f5f21
No related branches found
No related tags found
No related merge requests found
......@@ -31,3 +31,12 @@ def test_tempdir():
assert op.realpath(os.getcwd()) == op.realpath(td)
assert not op.exists(d)
def test_tempdir_root():
# this first tempdir is then used
# as the root for another temp dir
with tempdir.tempdir() as root:
with tempdir.tempdir(root=root) as td:
assert op.dirname(td) == root
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment