| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 """More dummy exception subclasses used by core/discover.py's unit tests.""" | 5 """More dummy exception subclasses used by core/discover.py's unit tests.""" |
| 6 | 6 |
| 7 # Import class instead of module explicitly so that inspect.getmembers() returns | 7 # Import class instead of module explicitly so that inspect.getmembers() returns |
| 8 # two Exception subclasses in this current file. | 8 # two Exception subclasses in this current file. |
| 9 # Suppress complaints about unable to import class. The directory path is | 9 # Suppress complaints about unable to import class. The directory path is |
| 10 # added at runtime by telemetry test runner. | 10 # added at runtime by telemetry test runner. |
| 11 #pylint: disable=import-error | 11 #pylint: disable=import-error |
| 12 from telemetry.internal.testing.discoverable_classes import discover_dummyclass | 12 from discoverable_classes import discover_dummyclass |
| 13 | 13 |
| 14 | 14 |
| 15 class _PrivateDummyException(discover_dummyclass.DummyException): | 15 class _PrivateDummyException(discover_dummyclass.DummyException): |
| 16 def __init__(self): | 16 def __init__(self): |
| 17 super(_PrivateDummyException, self).__init__() | 17 super(_PrivateDummyException, self).__init__() |
| 18 | 18 |
| 19 | 19 |
| 20 class DummyExceptionImpl1(_PrivateDummyException): | 20 class DummyExceptionImpl1(_PrivateDummyException): |
| 21 def __init__(self): | 21 def __init__(self): |
| 22 super(DummyExceptionImpl1, self).__init__() | 22 super(DummyExceptionImpl1, self).__init__() |
| 23 | 23 |
| 24 | 24 |
| 25 class DummyExceptionImpl2(_PrivateDummyException): | 25 class DummyExceptionImpl2(_PrivateDummyException): |
| 26 def __init__(self): | 26 def __init__(self): |
| 27 super(DummyExceptionImpl2, self).__init__() | 27 super(DummyExceptionImpl2, self).__init__() |
| 28 | 28 |
| 29 | 29 |
| 30 class DummyExceptionWithParameterImpl1(_PrivateDummyException): | 30 class DummyExceptionWithParameterImpl1(_PrivateDummyException): |
| 31 def __init__(self, parameter): | 31 def __init__(self, parameter): |
| 32 super(DummyExceptionWithParameterImpl1, self).__init__() | 32 super(DummyExceptionWithParameterImpl1, self).__init__() |
| 33 del parameter | 33 del parameter |
| OLD | NEW |