A fork of https://github.com/Synerty/SOAPpy-py3 This is a working tree till fixes get imported upstream.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
332 B

  1. #!/usr/bin/python
  2. import sys
  3. sys.path.insert(1, "..")
  4. import SOAPpy
  5. import time
  6. import gc
  7. import types
  8. gc.set_debug(gc.DEBUG_SAVEALL)
  9. for i in range(400):
  10. try:
  11. t = SOAPpy.SOAP.parseSOAPRPC('bad soap payload')
  12. except: pass
  13. gc.collect()
  14. if len(gc.garbage):
  15. print 'still leaking'
  16. else:
  17. print 'no leak'