From 3d6b68ae541d6020ff747628b3e44196999e0a50 Mon Sep 17 00:00:00 2001 From: Thomas Koch Date: Mon, 21 Jan 2013 15:50:39 +0100 Subject: 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. --- tests/09_test_write_tree.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/09_test_write_tree.py') diff --git a/tests/09_test_write_tree.py b/tests/09_test_write_tree.py index 4275cac..3534f77 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 -- cgit v1.2.3