@@ -214,6 +214,7 @@ def test_execute_python(self, proc32_64):
214214 dword = proc32_64 .read_dword (addr )
215215 assert dword == 0x42424242
216216
217+ @python_injection
217218 def test_execute_python_good_version (self , proc32_64 ):
218219 PIPE_NAME = "PFW_TEST_Pipe"
219220 rcode = r"""import sys; import windows; import windows.pipe; windows.pipe.send_object("{pipe}", list(sys.version_info))"""
@@ -293,6 +294,7 @@ def test_execute_python_raises(self, proc32_64):
293294 # Check the RemotePythonError contains the remote exception text
294295 assert b"ValueError: EXCEPTION_MESSAGE" in ar .value .args [0 ]
295296
297+ @python_injection
296298 def test_execute_python_create_console (self , proc32_64 ):
297299 res = proc32_64 .execute_python ("import windows; windows.utils.create_console()" )
298300
@@ -370,17 +372,19 @@ def test_set_thread_context_64(self, proc64):
370372 time .sleep (0.1 )
371373 assert t .exit_code == 0x11223344
372374
373-
375+ @ dll_injection
374376 def test_load_library (self , proc32_64 ):
375377 DLL = "wintrust.dll"
376378 proc32_64 .load_library (DLL )
377379 assert DLL in [m .name for m in proc32_64 .peb .modules ]
378380
381+ @dll_injection
379382 def test_load_library_suspended (self , proc32_64_suspended ):
380383 DLL = "wintrust.dll"
381384 proc32_64_suspended .load_library (DLL )
382385 assert DLL in [m .name for m in proc32_64_suspended .peb .modules ]
383386
387+ @dll_injection
384388 def test_load_library_unicode_name (self , proc32_64 , tmpdir ):
385389 mybitness = windows .current_process .bitness
386390 UNICODE_FILENAME = u'\u4e2d \u56fd \u94f6 \u884c \u7f51 \u94f6 \u52a9 \u624b .dll'
0 commit comments