summaryrefslogtreecommitdiff
path: root/src/python/stdlib/test/test_pstats.py
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-26 13:50:50 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-26 13:50:50 (GMT)
commite46ef289e142982d7bd592faa7b0f85470364c01 (patch)
treecda253e03788f7db0a7cdcd05662f66b4455e298 /src/python/stdlib/test/test_pstats.py
parentd0d0d62bbcbb5c3417f8cba419c83bac192ea985 (diff)
downloadpowder-e46ef289e142982d7bd592faa7b0f85470364c01.zip
powder-e46ef289e142982d7bd592faa7b0f85470364c01.tar.gz
Remove Python console stuff
Diffstat (limited to 'src/python/stdlib/test/test_pstats.py')
-rw-r--r--src/python/stdlib/test/test_pstats.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/python/stdlib/test/test_pstats.py b/src/python/stdlib/test/test_pstats.py
deleted file mode 100644
index 6ad9418..0000000
--- a/src/python/stdlib/test/test_pstats.py
+++ /dev/null
@@ -1,32 +0,0 @@
-import unittest
-from test import test_support
-import pstats
-
-
-
-class AddCallersTestCase(unittest.TestCase):
- """Tests for pstats.add_callers helper."""
-
- def test_combine_results(self):
- """pstats.add_callers should combine the call results of both target
- and source by adding the call time. See issue1269."""
- # new format: used by the cProfile module
- target = {"a": (1, 2, 3, 4)}
- source = {"a": (1, 2, 3, 4), "b": (5, 6, 7, 8)}
- new_callers = pstats.add_callers(target, source)
- self.assertEqual(new_callers, {'a': (2, 4, 6, 8), 'b': (5, 6, 7, 8)})
- # old format: used by the profile module
- target = {"a": 1}
- source = {"a": 1, "b": 5}
- new_callers = pstats.add_callers(target, source)
- self.assertEqual(new_callers, {'a': 2, 'b': 5})
-
-
-def test_main():
- test_support.run_unittest(
- AddCallersTestCase
- )
-
-
-if __name__ == "__main__":
- test_main()