mirror of
https://github.com/python/cpython.git
synced 2025-08-25 11:15:02 +00:00
Added test for 85cb90f79cbf and see how the code handles all flags at once
This commit is contained in:
parent
c3a2c59806
commit
7b648753ab
1 changed files with 5 additions and 0 deletions
|
@ -2887,6 +2887,11 @@ class MiscIOTest(unittest.TestCase):
|
||||||
with self.open(support.TESTFN, 'rb') as f:
|
with self.open(support.TESTFN, 'rb') as f:
|
||||||
self.assertEqual(b"spam", f.read())
|
self.assertEqual(b"spam", f.read())
|
||||||
|
|
||||||
|
def test_open_allargs(self):
|
||||||
|
# there used to be a buffer overflow in the parser for rawmode
|
||||||
|
self.assertRaises(ValueError, self.open, support.TESTFN, 'rwax+')
|
||||||
|
|
||||||
|
|
||||||
class CMiscIOTest(MiscIOTest):
|
class CMiscIOTest(MiscIOTest):
|
||||||
io = io
|
io = io
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue