Lines Matching refs:open
119 with open("test-marshal.bin", "wb") as f:
121 with open("test-marshal.bin", "rb") as f:
190 # SSLContext.load_dh_params uses _Py_fopen_obj rather than normal open()
198 # Try a range of "open" functions.
200 with TestHook(raise_on_events={"open"}) as hook:
202 (open, sys.argv[2], "r"),
203 (open, sys.executable, "rb"),
204 (open, 3, "wb"),
205 (open, sys.argv[2], "w", -1, None, None, None, False, lambda *a: 1),
213 actual_mode = [(a[0], a[1]) for e, a in hook.seen if e == "open" and a[1]]
214 actual_flag = [(a[0], a[2]) for e, a in hook.seen if e == "open" and not a[1]]
434 # implicit open
436 # open with default ident