commit | 1c72acf24cc8e39be5d9cc1674c66811d9b036c4 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Jun 27 14:52:41 2015 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Jun 27 14:52:41 2015 -0500 |
tree | 7af1c6b5855169b760c3faa2a0ad630d7c8f4e7b | |
parent | 1ecb5ce70762b979111ed4f0388d419f76c70867 [diff] [blame] |
ensure internal buffer is large enough for string after flushing (closes #24481)
diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py index 7da9746..9f4b798 100644 --- a/Lib/test/test_hotshot.py +++ b/Lib/test/test_hotshot.py
@@ -149,6 +149,10 @@ stats.load(self.logfn) os.unlink(self.logfn) + def test_large_info(self): + p = self.new_profiler() + self.assertRaises(ValueError, p.addinfo, "A", "A" * 0xfceb) + def test_main(): test_support.run_unittest(HotShotTestCase)