Changeset - e0b1c45eb117
[Not reviewed]
default
0 1 0
Lars Kruse - 8 years ago 2017-08-25 14:31:29
devel@sumpfralle.de
tests: add missing tempfile import

There was already a broken reference to the tempfile module.
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/scripts/manual_test_concurrency.py
Show inline comments
 
@@ -27,15 +27,14 @@ Original author and date, and relevant c
 
"""
 

	
 
import os
 
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
 
from sqlalchemy import engine_from_config
 

	
 
from kallithea.lib.utils import setup_cache_regions
 
@@ -200,13 +199,13 @@ if __name__ == '__main__':
 
        try:
 
            backend = sys.argv[4]
 
        except IndexError:
 
            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()
 
        for i in range(1, int(sys.argv[2]) + 1):
 
            print 'take', i
 
            test_clone_with_credentials(repo=sys.argv[1], method=METHOD,
0 comments (0 inline, 0 general)