diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-03-10 10:05:07 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-03-10 10:05:07 (GMT) |
commit | 8ce8ff9ac77bdf202bf39bb98203d26cd40d8e04 (patch) | |
tree | e2f8e55269f18537de0a621742b4cd2f56522e78 /Lib/test | |
parent | bcfcfc51f89e67f8cc890984f4f4054532706841 (diff) | |
download | cpython-8ce8ff9ac77bdf202bf39bb98203d26cd40d8e04.zip cpython-8ce8ff9ac77bdf202bf39bb98203d26cd40d8e04.tar.gz cpython-8ce8ff9ac77bdf202bf39bb98203d26cd40d8e04.tar.bz2 |
tracemalloc: filter_traces() raises a TypeError if filters is not an iterable
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_tracemalloc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py index d1e5aef..c953885 100644 --- a/Lib/test/test_tracemalloc.py +++ b/Lib/test/test_tracemalloc.py @@ -346,6 +346,8 @@ class TestSnapshot(unittest.TestCase): self.assertIsNot(snapshot5.traces, snapshot.traces) self.assertEqual(snapshot5.traces, snapshot.traces) + self.assertRaises(TypeError, snapshot.filter_traces, filter1) + def test_snapshot_group_by_line(self): snapshot, snapshot2 = create_snapshots() tb_0 = traceback_lineno('<unknown>', 0) |