From 3489a560fb23b93638645111e648dd0fd798d2b0 Mon Sep 17 00:00:00 2001 From: hakril Date: Sun, 2 Feb 2025 18:40:07 +0100 Subject: [PATCH] Remove some pytest warning --- tests/test_alpc.py | 2 +- tests/test_crypto.py | 2 +- tests/test_process.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_alpc.py b/tests/test_alpc.py index d52a783..0546626 100644 --- a/tests/test_alpc.py +++ b/tests/test_alpc.py @@ -15,7 +15,7 @@ def generate_client_server_test(client_function, server_function): time.sleep(0.5) client_function() th.join() - return True + return return generated_test PORT_NAME = r"\RPC Control\PythonForWindowsTestPort" diff --git a/tests/test_crypto.py b/tests/test_crypto.py index aad58b9..c97510c 100644 --- a/tests/test_crypto.py +++ b/tests/test_crypto.py @@ -227,7 +227,7 @@ def test_crypt_obj(): # TODO: Need some better ideas def test_certificate_from_store(): - return windows.crypto.CertificateStore.from_system_store("Root") + assert windows.crypto.CertificateStore.from_system_store("Root") def test_sign_verify(rawcert, rawpfx): diff --git a/tests/test_process.py b/tests/test_process.py index aea71d4..2552f9a 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -25,7 +25,7 @@ class TestCurrentProcessWithCheckGarbage(object): assert myself.ppid == windows.current_process.ppid def test_get_current_process_peb(self): - return windows.current_process.peb + assert windows.current_process.peb def test_get_current_process_modules(self): # Use module filename because this executable can be: