Chromium Code Reviews| Index: tests/gclient_scm_test.py |
| diff --git a/tests/gclient_scm_test.py b/tests/gclient_scm_test.py |
| index e91636854fdd7206042adcc3798063fe64ab188d..4f3593f1e537447824a47bf2e0eccf82be4cb97c 100755 |
| --- a/tests/gclient_scm_test.py |
| +++ b/tests/gclient_scm_test.py |
| @@ -8,7 +8,6 @@ |
| # pylint: disable=E1103 |
| # Import before super_mox to keep valid references. |
| -from os import rename |
| from shutil import rmtree |
| from subprocess import Popen, PIPE, STDOUT |
| @@ -372,7 +371,7 @@ class SVNWrapperTestCase(BaseTestCase): |
| gclient_scm.os.path.exists(join(self.base_path, '.hg')).AndReturn(False) |
| gclient_scm.os.path.exists(self.base_path).AndReturn(True) |
| - # Checkout or update. |
| + # Checkout or update. |
|
M-A Ruel
2013/07/19 20:42:40
?
Isaac (away)
2013/07/19 21:50:28
hmm... fixed.
|
| dotted_path = join(self.base_path, '.') |
| gclient_scm.scm.SVN._CaptureInfo([], dotted_path).AndReturn(file_info) |
| @@ -1026,21 +1025,6 @@ class ManagedGitWrapperTestCase(BaseGitWrapperTestCase): |
| self.assertRaisesError(exception, scm.update, options, (), []) |
| sys.stdout.close() |
| - def testUpdateNotGit(self): |
| - if not self.enabled: |
| - return |
| - options = self.Options() |
| - scm = gclient_scm.CreateSCM(url=self.url, root_dir=self.root_dir, |
| - relpath=self.relpath) |
| - git_path = join(self.base_path, '.git') |
| - rename(git_path, git_path + 'foo') |
| - exception = ('\n____ . at refs/heads/master\n' |
| - '\tPath is not a git repo. No .git dir.\n' |
| - '\tTo resolve:\n' |
| - '\t\trm -rf .\n' |
| - '\tAnd run gclient sync again\n') |
| - self.assertRaisesError(exception, scm.update, options, (), []) |
| - |
| def testRevinfo(self): |
| if not self.enabled: |
| return |