mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Remove some pytest warning
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user