From bcfe9040154812fe4ed995038dca865fda387ab3 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Wed, 25 Nov 2015 08:26:27 -0800 Subject: [PATCH] remove test from the name in examples. --- tests/examples/test_examples.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/examples/test_examples.py b/tests/examples/test_examples.py index baddb6db..48cbaa65 100644 --- a/tests/examples/test_examples.py +++ b/tests/examples/test_examples.py @@ -3,7 +3,7 @@ import sys from SimPEG import Examples import numpy as np -def get_test(test): +def get(test): def func(self): print '\nTesting %s.run(plotIt=False)\n'%test getattr(Examples, test).run(plotIt=False) @@ -12,8 +12,8 @@ def get_test(test): attrs = dict() tests = [_ for _ in dir(Examples) if not _.startswith('_')] for test in tests: - attrs['test_'+test] = get_test(test) - + attrs['test_'+test] = get(test) +del get, tests, _ TestExamples = type('TestExamples', (unittest.TestCase,), attrs)