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