Commit 74675f8b authored by Luke Macken's avatar Luke Macken

Merge pull request #2 from GunioRobot/clean

Hi! I cleaned up your code for you!
parents da666130 6e719ec3
......@@ -35,14 +35,14 @@ process and ensures it gets printed.
::
from pyrasite.inject import CodeInjector
def test_injection(self):
cmd = 'python -c "import time; time.sleep(0.5)"'
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE)
ci = CodeInjector(p.pid, 'payloads/helloworld.py')
ci.inject()
stdout, stderr = p.communicate()
assert 'Hello World!' in stdout, "Code injection failed"
......@@ -113,7 +113,7 @@ Dumping modules, thread stacks, and forcing garbage collection
payloads/dump_modules.py
payloads/dump_stacks.py
payloads/force_garbage_collection.py
Additional installation notes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
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