summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2011-06-30 18:56:36 +0200
committerjvoisin2011-06-30 18:56:36 +0200
commit56bde32224a8044b0da3c5646b6cc2c112f74479 (patch)
tree1597e966aca79ae269a9e128eccf7ae5a01c634e
parent4b1323af17f144724d5ca0c8c35f1aa5253655f6 (diff)
mkdtemp is deprecated, use mkstemp instead
-rw-r--r--test/test.py2
1 files changed, 1 insertions, 1 deletions
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):
20 def setUp(self): 20 def setUp(self):
21 '''create working copy of the clean and the dirty file in the TMP dir''' 21 '''create working copy of the clean and the dirty file in the TMP dir'''
22 self.file_list = [] 22 self.file_list = []
23 self.tmpdir = tempfile.mkdtemp() 23 _, self.tmpdir = tempfile.mkstemp()
24 24
25 for clean, dirty in FILE_LIST: 25 for clean, dirty in FILE_LIST:
26 shutil.copy2(clean, self.tmpdir + clean) 26 shutil.copy2(clean, self.tmpdir + clean)