Trying to shuffle

This commit is contained in:
Alan Saul 2013-03-11 18:09:47 +00:00
parent e6acaf651e
commit 62615f2ca8

View file

@ -7,6 +7,7 @@ import GPy
import inspect
import pkgutil
import os
import random
class ExamplesTests(unittest.TestCase):
@ -45,7 +46,7 @@ def test_models():
print "MODULE", module_examples
print "Before"
print inspect.getmembers(module_examples, predicate=inspect.isfunction)
functions = [ func for func in inspect.getmembers(module_examples, predicate=inspect.isfunction) if func[0].startswith('_') is False ][::-1]
functions = [ func for func in inspect.getmembers(module_examples, predicate=inspect.isfunction) if func[0].startswith('_') is False ]
print "After"
print functions
for example in functions: