mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-119690: Adds Unicode support for named pipes in _winapi (GH-119717)
This commit is contained in:
parent
34f9b3e724
commit
78d697b7d5
6 changed files with 92 additions and 29 deletions
|
@ -556,6 +556,17 @@ def test_sys_monitoring_register_callback():
|
|||
sys.monitoring.register_callback(1, 1, None)
|
||||
|
||||
|
||||
def test_winapi_createnamedpipe(pipe_name):
|
||||
import _winapi
|
||||
|
||||
def hook(event, args):
|
||||
if event == "_winapi.CreateNamedPipe":
|
||||
print(event, args)
|
||||
|
||||
sys.addaudithook(hook)
|
||||
_winapi.CreateNamedPipe(pipe_name, _winapi.PIPE_ACCESS_DUPLEX, 8, 2, 0, 0, 0, 0)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from test.support import suppress_msvcrt_asserts
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue