From: Christian Heimes Date: Mon, 10 Sep 2012 12:48:43 +0000 (+0200) Subject: Added test for 85cb90f79cbf and see how the code handles all flags at once X-Git-Tag: v3.3.1rc1~818^2^2~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b648753abdb255396c7d6621e21eaf12b5d7ffc;p=python Added test for 85cb90f79cbf and see how the code handles all flags at once --- diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 57353506ea..d5eec7c221 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