changeset 6861:e0b1c45eb117

tests: add missing tempfile import There was already a broken reference to the tempfile module.
author Lars Kruse <devel@sumpfralle.de>
date Fri, 25 Aug 2017 14:31:29 +0200
parents 665dfa112f2c
children 9841eef3f2e4
files kallithea/tests/scripts/manual_test_concurrency.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/scripts/manual_test_concurrency.py	Fri Aug 25 14:30:57 2017 +0200
+++ b/kallithea/tests/scripts/manual_test_concurrency.py	Fri Aug 25 14:31:29 2017 +0200
@@ -30,9 +30,8 @@
 import sys
 import shutil
 import logging
+import tempfile
 from os.path import dirname
-
-from tempfile import _RandomNameSequence
 from subprocess import Popen, PIPE
 
 from paste.deploy import appconfig
@@ -203,7 +202,7 @@
             backend = 'hg'
 
         if METHOD == 'pull':
-            seq = _RandomNameSequence().next()
+            seq = tempfile._RandomNameSequence().next()
             test_clone_with_credentials(repo=sys.argv[1], method='clone',
                                         backend=backend)
         s = time.time()