From 0b05d0419790e2f517aa12cdc407c5855d73e80c Mon Sep 17 00:00:00 2001 From: zooko Date: Sat, 27 Jan 2007 07:47:59 +0530 Subject: [PATCH] pyfec: execute tests on import of test_pyfec.py only if it is the __main__ darcs-hash:83c9116fa21d29b701a52bf8033dce3f95bde461 --- pyfec/fec/test/test_pyfec.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfec/fec/test/test_pyfec.py b/pyfec/fec/test/test_pyfec.py index b01a3e6..00f59fb 100755 --- a/pyfec/fec/test/test_pyfec.py +++ b/pyfec/fec/test/test_pyfec.py @@ -83,5 +83,7 @@ def test_random(): _test_random() # sys.stdout.write(".") print "%d randomized tests pass." % (i+1) -test_random() + +if __name__ == "__init__": + test_random() -- 2.45.2