Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Unified Diff: content/test/gpu/gpu_tests/pixel.py

Issue 1413883003: Add a presubmit script and pylintrc for content/test/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address kbr's comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/test/gpu/gpu_tests/pixel.py
diff --git a/content/test/gpu/gpu_tests/pixel.py b/content/test/gpu/gpu_tests/pixel.py
index 9ea1f7754e4d6e2087dbbbc5388c7c5a802ab4e0..0884751c30cac806b5f0b301eb307494f04f6649 100644
--- a/content/test/gpu/gpu_tests/pixel.py
+++ b/content/test/gpu/gpu_tests/pixel.py
@@ -1,16 +1,14 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from datetime import datetime
import glob
import json
-import optparse
import os
import re
-import cloud_storage_test_base
+from gpu_tests import cloud_storage_test_base
+from gpu_tests import pixel_expectations
import page_sets
-import pixel_expectations
from catapult_base import cloud_storage
from telemetry.page import page_test
@@ -100,7 +98,7 @@ class PixelValidator(cloud_storage_test_base.ValidatorBase):
# reference image, so download it from cloud storage.
try:
ref_png = self._DownloadFromCloudStorage(image_name, page, tab)
- except cloud_storage.NotFoundError as e:
+ except cloud_storage.NotFoundError:
# There is no reference image yet in cloud storage. This
# happens when the revision of the test is incremented or when
# a new test is added, because the trybots are not allowed to
« no previous file with comments | « content/test/gpu/gpu_tests/memory_test_expectations.py ('k') | content/test/gpu/gpu_tests/pixel_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698