aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2020-07-27 11:31:25 -0700
committerGeorge Burgess <gbiv@chromium.org>2020-07-27 18:46:31 +0000
commit4f29d442786192cced1564f4bbee43fdaa53908e (patch)
treec5ee56e109d92ac79acfda52d1bd7cd3de6e2189
parente8ef27352c43229116188d2df87e5b236713cb3e (diff)
downloadtoolchain-utils-4f29d442786192cced1564f4bbee43fdaa53908e.tar.gz
llvm_tools: remove future import
Now that we're guaranteed to be on py3, this isn't needed. Mostly doing this to test a crbug feature. Fixed: 1109998 BUG=chromium:1109998 TEST=None Change-Id: I1f5d0c9c7c1297e9281be07ced4127e42546b3c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2321109 Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Denis Nikitin <denik@chromium.org>
-rwxr-xr-xllvm_tools/git_llvm_rev_test.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm_tools/git_llvm_rev_test.py b/llvm_tools/git_llvm_rev_test.py
index 775ab1e6..74280c5d 100755
--- a/llvm_tools/git_llvm_rev_test.py
+++ b/llvm_tools/git_llvm_rev_test.py
@@ -6,8 +6,6 @@
"""Tests for git_llvm_rev."""
-from __future__ import print_function
-
import unittest
import git_llvm_rev
@@ -63,8 +61,8 @@ class Test(unittest.TestCase):
def test_imaginary_revs_raise(self) -> None:
with self.assertRaises(ValueError) as r:
git_llvm_rev.translate_rev_to_sha(
- get_llvm_config(), git_llvm_rev.Rev(
- branch=MAIN_BRANCH, number=9999999))
+ get_llvm_config(),
+ git_llvm_rev.Rev(branch=MAIN_BRANCH, number=9999999))
self.assertIn('Try updating your tree?', str(r.exception))