- replace oldstyle class with newstyle class - add self to arguments for DummyLog methods
Signed-off-by: Dylan Baker <[email protected]> --- framework/tests/dmesg_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/tests/dmesg_tests.py b/framework/tests/dmesg_tests.py index 44723a7..38d158b 100644 --- a/framework/tests/dmesg_tests.py +++ b/framework/tests/dmesg_tests.py @@ -289,7 +289,7 @@ def check_classes_dmesg(test_class, test_args): raise SkipTest("This tests requires a working, built version of " "piglit") - class DummyJsonWriter(): + class DummyJsonWriter(object): """ A very simple dummy for json writer """ def __init__(self): pass @@ -301,13 +301,13 @@ def check_classes_dmesg(test_class, test_args): def __init__(self): pass - def pre_log(*args): + def pre_log(self, *args): return None - def log(*args): + def log(self, *args): pass - def post_log(*args): + def post_log(self, *args): pass def _write_dmesg(): -- 2.0.0 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
