Skip to content

Commit

Permalink
[PE-test]
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Jul 24, 2023
1 parent 54ec80a commit 82a967f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/pe/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def test_add_multiples_sections(tmp_path):
with Popen(["START", output.as_posix()], **popen_args) as proc:
time.sleep(3)
with Popen(["taskkill", "/im", output.name], **popen_args) as kproc:
stdout, _ = proc.communicate()
print(stdout)
stdout, _ = kproc.communicate()
print(stdout)
assert kproc.returncode == 0
Expand Down Expand Up @@ -86,6 +88,7 @@ def test_imports_notepadpp(tmp_path):

if is_windows():
popen_args = {
"universal_newlines": True,
"shell": True,
"stdout": subprocess.PIPE,
"stderr": subprocess.STDOUT,
Expand All @@ -94,5 +97,8 @@ def test_imports_notepadpp(tmp_path):
with Popen(["START", output.as_posix()], **popen_args) as proc:
time.sleep(3)
with Popen(["taskkill", "/im", output.name], **popen_args) as kproc:
kproc.communicate()
stdout, _ = proc.communicate()
print(stdout)
stdout, _ = kproc.communicate()
print(stdout)
assert kproc.returncode == 0

0 comments on commit 82a967f

Please sign in to comment.