diff --git a/tests/examples/test_examples.py b/tests/examples/test_examples.py index 1e1da875..edb5600c 100644 --- a/tests/examples/test_examples.py +++ b/tests/examples/test_examples.py @@ -15,8 +15,11 @@ class compareInitFiles(unittest.TestCase): pyfiles = [] [pyfiles.append(py.rstrip('.py')) for py in files if py.endswith('.py') and py != '__init__.py'] + setdiff = set(pyfiles) - set(Examples.__examples__) - didpass = pyfiles == Examples.__examples__ + print ' Any missing files? ', setdiff + + didpass = (setdiff == set()) self.assertTrue(didpass, "Examples not up to date, run 'python __init__.py' from SimPEG/Examples to update")