modify unit test for permission denied at system process

This commit is contained in:
Jurriaan Bremer
2017-12-03 15:51:58 +01:00
parent 9d2edb7710
commit 78a1e7da01
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
[metadata]
description-file = README.md
description-file = README.rst
[tool:pytest]
testpaths = tests
+2 -3
View File
@@ -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$")