mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
pyfec: execute tests on import of test_pyfec.py only if it is the __main__
This commit is contained in:
parent
9a39ec9f4e
commit
1f1b2a03b7
@ -83,5 +83,7 @@ def test_random():
|
||||
_test_random()
|
||||
# sys.stdout.write(".")
|
||||
print "%d randomized tests pass." % (i+1)
|
||||
|
||||
if __name__ == "__init__":
|
||||
test_random()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user