From 78a1e7da017b1e2c7019cc383669f8acb17f2ed9 Mon Sep 17 00:00:00 2001 From: Jurriaan Bremer Date: Sun, 3 Dec 2017 15:51:58 +0100 Subject: [PATCH] modify unit test for permission denied at system process --- setup.cfg | 2 +- tests/windows/test_process.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index 5fe29fe87..c73bb4a17 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -description-file = README.md +description-file = README.rst [tool:pytest] testpaths = tests diff --git a/tests/windows/test_process.py b/tests/windows/test_process.py index 76eecaea1..bec8e31a1 100644 --- a/tests/windows/test_process.py +++ b/tests/windows/test_process.py @@ -58,8 +58,7 @@ def test_is32bit_process(): p = Process() with chdir("cuckoo/data/analyzer/windows"): - # Normally (i.e., when not Administrator) the user shouldn't be able - # to access the lsass.exe process. + # Normally the user shouldn't be able to access the SYSTEM process. with pytest.raises(CuckooError) as e: - p.is32bit(process_name="lsass.exe") + p.is32bit(pid=4) e.match("process access denied$")