spacepaste

  1.  
  2. import py
  3. import test_c
  4. lst = []
  5. for fname in test_c.__dict__:
  6. if fname.startswith('test_'):
  7. lst.append(fname)
  8. lst.sort()
  9. for retry in range(170):
  10. for fname in lst:
  11. print fname
  12. try:
  13. getattr(test_c, fname)()
  14. except Exception as e:
  15. print e
  16. import gc
  17. gc.collect()
  18. gc.collect()
  19. gc.collect()
  20. gc.collect()
  21. gc.collect()
  22. gc.collect()
  23. gc.collect()
  24.