mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #12196: Make os.pipe2() flags argument mandatory.
This commit is contained in:
parent
34b312e33d
commit
368f34bb4b
3 changed files with 14 additions and 13 deletions
|
@ -481,8 +481,8 @@ class PosixTester(unittest.TestCase):
|
|||
self.assertRaises(TypeError, os.pipe2, 'DEADBEEF')
|
||||
self.assertRaises(TypeError, os.pipe2, 0, 0)
|
||||
|
||||
# try calling without flag, like os.pipe()
|
||||
r, w = os.pipe2()
|
||||
# try calling with flags = 0, like os.pipe()
|
||||
r, w = os.pipe2(0)
|
||||
os.close(r)
|
||||
os.close(w)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue