python3: fixed usage of .next() and .func_name
This commit is contained in:
parent
94a50edf39
commit
0122133e4e
13 changed files with 18 additions and 18 deletions
|
|
@ -146,7 +146,7 @@ def test_clone_with_credentials(repo=HG_REPO, method=METHOD,
|
|||
cwd = path = jn(TESTS_TMP_PATH, repo)
|
||||
|
||||
if seq is None:
|
||||
seq = _RandomNameSequence().next()
|
||||
seq = next(_RandomNameSequence())
|
||||
|
||||
try:
|
||||
shutil.rmtree(path, ignore_errors=True)
|
||||
|
|
@ -190,7 +190,7 @@ if __name__ == '__main__':
|
|||
backend = 'hg'
|
||||
|
||||
if METHOD == 'pull':
|
||||
seq = _RandomNameSequence().next()
|
||||
seq = next(_RandomNameSequence())
|
||||
test_clone_with_credentials(repo=sys.argv[1], method='clone',
|
||||
seq=seq, backend=backend)
|
||||
s = time.time()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue