Commit cc498247 authored by Denis Bilenko's avatar Denis Bilenko

test_patched_subprocess.py: remove temp file, check monkey patching

parent 958d9b6c
import os
import glob
import helper
exec helper.prepare_stdlib_test(__file__) in globals()
before = set(glob.glob('@test_*_tmp'))
helper.run(__file__, globals())
for filename in set(glob.glob('@test_*_tmp')) - before:
os.unlink(filename)
import subprocess
assert 'gevent' in repr(subprocess.Popen.__init__.im_func.func_code), repr(subprocess.Popen.__init__.im_func.func_code)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment