# HG changeset patch # User Mads Kiilerich # Date 2018-02-07 00:43:34 # Node ID 369a646638f3ed145e3b0262ac87087f54bf7d85 # Parent 9f976d75b04c97624474404da2d17e0d087face7 tests: fix some pyflakes warnings for vcs diff --git a/kallithea/tests/vcs/conf.py b/kallithea/tests/vcs/conf.py --- a/kallithea/tests/vcs/conf.py +++ b/kallithea/tests/vcs/conf.py @@ -2,10 +2,7 @@ Unit tests configuration module for vcs. """ import os -import time -import hashlib import tempfile -import datetime import shutil import uuid diff --git a/kallithea/tests/vcs/test_git.py b/kallithea/tests/vcs/test_git.py --- a/kallithea/tests/vcs/test_git.py +++ b/kallithea/tests/vcs/test_git.py @@ -35,7 +35,7 @@ class GitRepositoryTest(unittest.TestCas repo_inject_path = TEST_GIT_REPO + '; echo "Cake";' with self.assertRaises(urllib2.URLError): # Should fail because URL will contain the parts after ; too - urlerror_fail_repo = GitRepository(get_new_dir('injection-repo'), src_url=repo_inject_path, update_after_clone=True, create=True) + GitRepository(get_new_dir('injection-repo'), src_url=repo_inject_path, update_after_clone=True, create=True) with self.assertRaises(RepositoryError): # Should fail on direct clone call, which as of this writing does not happen outside of class diff --git a/kallithea/tests/vcs/test_inmemchangesets.py b/kallithea/tests/vcs/test_inmemchangesets.py --- a/kallithea/tests/vcs/test_inmemchangesets.py +++ b/kallithea/tests/vcs/test_inmemchangesets.py @@ -355,7 +355,6 @@ class BackendBaseTestCase(unittest.TestC """ Returns newly created repository's directory. """ - backend = self.get_backend() key = '%s-%s' % (self.backend_alias, str(time.time())) repo_path = get_new_dir(key) return repo_path