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

Side by Side Diff: telemetry/telemetry/internal/testing/discoverable_classes/another_discover_dummyclass.py

Issue 2941123002: [Telemetry] Move discover to common/py_utils (Closed)
Patch Set: fix imports Created 3 years, 6 months 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698