From 9f272bc208a7c8854d05faa892b83e6faa39fcff Mon Sep 17 00:00:00 2001 From: weslleymberg Date: Sat, 27 Sep 2014 19:29:17 -0300 Subject: [PATCH] Fix AttributeError when calling 'setup.py test' --- run_all_examples.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run_all_examples.py b/run_all_examples.py index 8a9c943..93f8c22 100755 --- a/run_all_examples.py +++ b/run_all_examples.py @@ -10,6 +10,9 @@ def all_examples(): filter(lambda f: f.endswith('.txt'), os.listdir(doctests_path)))) return documentation + doctests -if __name__ == '__main__': +def test_suite(): run(all_examples()) +if __name__ == '__main__': + test_suite() +