From 56bde32224a8044b0da3c5646b6cc2c112f74479 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 30 Jun 2011 18:56:36 +0200 Subject: mkdtemp is deprecated, use mkstemp instead --- test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test.py b/test/test.py index f856394..cb061ec 100644 --- a/test/test.py +++ b/test/test.py @@ -20,7 +20,7 @@ class MATTest(unittest.TestCase): def setUp(self): '''create working copy of the clean and the dirty file in the TMP dir''' self.file_list = [] - self.tmpdir = tempfile.mkdtemp() + _, self.tmpdir = tempfile.mkstemp() for clean, dirty in FILE_LIST: shutil.copy2(clean, self.tmpdir + clean) -- cgit v1.3