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