Skip to content

Commit 3489a56

Browse files
committed
Remove some pytest warning
1 parent 6fd3276 commit 3489a56

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_alpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def generated_test():
1515
time.sleep(0.5)
1616
client_function()
1717
th.join()
18-
return True
18+
return
1919
return generated_test
2020

2121
PORT_NAME = r"\RPC Control\PythonForWindowsTestPort"

tests/test_crypto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def test_crypt_obj():
227227
# TODO: Need some better ideas
228228

229229
def test_certificate_from_store():
230-
return windows.crypto.CertificateStore.from_system_store("Root")
230+
assert windows.crypto.CertificateStore.from_system_store("Root")
231231

232232

233233
def test_sign_verify(rawcert, rawpfx):

tests/test_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_current_process_ppid(self):
2525
assert myself.ppid == windows.current_process.ppid
2626

2727
def test_get_current_process_peb(self):
28-
return windows.current_process.peb
28+
assert windows.current_process.peb
2929

3030
def test_get_current_process_modules(self):
3131
# Use module filename because this executable can be:

0 commit comments

Comments
 (0)