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

Side by Side Diff: telemetry/examples/browser_tests/failed_tests.py

Issue 2562913003: Move browser_test_runner.LoadAllTestsInModule to serially_executed_browser_test_case (Closed)
Patch Set: Fix test Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | telemetry/examples/browser_tests/simple_browser_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import sys
5 6
6 from telemetry.testing import serially_executed_browser_test_case 7 from telemetry.testing import serially_executed_browser_test_case
7 8
8 9
9 class SetUpClassFailedTest( 10 class SetUpClassFailedTest(
10 serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase): 11 serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase):
11 12
12 @classmethod 13 @classmethod
13 def setUpClass(cls): 14 def setUpClass(cls):
14 raise Exception 15 raise Exception
(...skipping 16 matching lines...) Expand all
31 raise Exception 32 raise Exception
32 33
33 @classmethod 34 @classmethod
34 def GenerateTestCases_DummyTest(cls, options): 35 def GenerateTestCases_DummyTest(cls, options):
35 del options # Unused. 36 del options # Unused.
36 for i in xrange(0, 100): 37 for i in xrange(0, 100):
37 yield 'dummy_test_%i' % i, () 38 yield 'dummy_test_%i' % i, ()
38 39
39 def DummyTest(self): 40 def DummyTest(self):
40 pass 41 pass
42
43
44 def load_tests(loader, tests, pattern):
45 del loader, tests, pattern # Unused.
Dirk Pranke 2016/12/11 03:23:01 Nit: maybe use a pylint annotation here instead?
nednguyen 2016/12/11 13:01:44 This is our preferred pattern: go/del-for-unused (
46 return serially_executed_browser_test_case.LoadAllTestsInModule(
47 sys.modules[__name__])
OLDNEW
« no previous file with comments | « no previous file | telemetry/examples/browser_tests/simple_browser_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698