summaryrefslogtreecommitdiff
path: root/tests/09_test_write_tree.py
diff options
context:
space:
mode:
authorThomas Koch <thomas@koch.ro>2013-01-21 15:50:39 +0100
committerGuido Günther <agx@sigxcpu.org>2013-04-08 07:43:02 +0200
commit3d6b68ae541d6020ff747628b3e44196999e0a50 (patch)
treebb3f94d4f9c0af6eb3a9779dbf6bbee20a512ef0 /tests/09_test_write_tree.py
parent92edb4eda14cf4b5fd1514feb7b81aa50456285c (diff)
downloadgit-buildpackage-3d6b68ae541d6020ff747628b3e44196999e0a50.tar.gz
git-buildpackage-3d6b68ae541d6020ff747628b3e44196999e0a50.tar.bz2
git-buildpackage-3d6b68ae541d6020ff747628b3e44196999e0a50.zip
tests: Use tempfile.mkdtemp to create temp dirs for tests
This puts test dirs below /tmp which often is a tmpfs. All tests include the context module which consolidates tmpdir creation and cleanup, undoes a chdir in teardown and silences log messages.
Diffstat (limited to 'tests/09_test_write_tree.py')
-rw-r--r--tests/09_test_write_tree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/09_test_write_tree.py b/tests/09_test_write_tree.py
index 4275cac7..3534f77e 100644
--- a/tests/09_test_write_tree.py
+++ b/tests/09_test_write_tree.py
@@ -2,6 +2,8 @@
"""Test L{GitRepository}'s write_tree method"""
+from . import context
+
import os
import tests.testutils as testutils