Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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__]) | |
| OLD | NEW |