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/03_test_dch_guess_version.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/03_test_dch_guess_version.py') diff --git a/tests/03_test_dch_guess_version.py b/tests/03_test_dch_guess_version.py index 8bcd4e5..97a4850 100644 --- a/tests/03_test_dch_guess_version.py +++ b/tests/03_test_dch_guess_version.py @@ -2,7 +2,10 @@ """Test L{Changelog}'s guess_version_from_upstream""" +from . import context + import testutils +import unittest from gbp.scripts import dch from gbp.deb.changelog import ChangeLog -- cgit v1.2.3