Issue #12196: Make os.pipe2() flags argument mandatory.

This commit is contained in:
Charles-François Natali 2011-06-06 19:49:47 +02:00
parent 34b312e33d
commit 368f34bb4b
3 changed files with 14 additions and 13 deletions

View file

@ -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)