diff options
author | Christian Heimes <christian@cheimes.de> | 2012-09-10 12:48:43 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-09-10 12:48:43 (GMT) |
commit | 7b648753abdb255396c7d6621e21eaf12b5d7ffc (patch) | |
tree | af738c2d3e1e01e8e7202a7d73cf842107722997 /Lib/test/test_io.py | |
parent | c3a2c5980688711e804129abe67d361b295f419d (diff) | |
download | cpython-7b648753abdb255396c7d6621e21eaf12b5d7ffc.zip cpython-7b648753abdb255396c7d6621e21eaf12b5d7ffc.tar.gz cpython-7b648753abdb255396c7d6621e21eaf12b5d7ffc.tar.bz2 |
Added test for 85cb90f79cbf and see how the code handles all flags at once
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r-- | Lib/test/test_io.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 5735350..d5eec7c 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -2887,6 +2887,11 @@ class MiscIOTest(unittest.TestCase): with self.open(support.TESTFN, 'rb') as f: 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): io = io |