Skip to content

Commit dda4335

Browse files
committed
NULL mode does crash
1 parent 0fc6dc1 commit dda4335

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_capi/test_file.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ def test_py_fopen(self):
6060
# On Windows, the file mode is limited to 10 characters
6161
_testcapi.py_fopen(__file__, "rt+, ccs=UTF-8")
6262

63+
# CRASHES py_fopen(__file__, None)
64+
6365

6466
if __name__ == "__main__":
6567
unittest.main()

0 commit comments

Comments
 (0)