diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-25 08:29:45 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-25 08:29:45 (GMT) |
commit | a89ecc7d237c3f409afbbee4d736fadfda810a18 (patch) | |
tree | 478d9e89bfadf65bd7aa8532b9a6ed8b9229cc76 /Lib/test/test_tracemalloc.py | |
parent | d476ab1276abc66a5cf3379bf4a2065464d4a530 (diff) | |
download | cpython-a89ecc7d237c3f409afbbee4d736fadfda810a18.zip cpython-a89ecc7d237c3f409afbbee4d736fadfda810a18.tar.gz cpython-a89ecc7d237c3f409afbbee4d736fadfda810a18.tar.bz2 |
Cleanup test_tracemalloc.py. Patch written by Vajrasky Kok.
Diffstat (limited to 'Lib/test/test_tracemalloc.py')
-rw-r--r-- | Lib/test/test_tracemalloc.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py index 1d15667..f1352e3 100644 --- a/Lib/test/test_tracemalloc.py +++ b/Lib/test/test_tracemalloc.py @@ -1,6 +1,4 @@ -import _tracemalloc import contextlib -import datetime import os import sys import tracemalloc @@ -207,7 +205,7 @@ class TestTracemallocEnabled(unittest.TestCase): size, max_size = tracemalloc.get_traced_memory() self.assertGreater(size, 0) - # stop() rests also traced memory counters + # stop() also resets traced memory counters tracemalloc.stop() self.assertEqual(tracemalloc.get_traced_memory(), (0, 0)) @@ -729,7 +727,7 @@ class TestCommandLine(unittest.TestCase): stdout = stdout.rstrip() self.assertEqual(stdout, b'False') - # PYTHON* environment varibles must be ignored when -E option is + # PYTHON* environment variables must be ignored when -E option is # present code = 'import tracemalloc; print(tracemalloc.is_tracing())' ok, stdout, stderr = assert_python_ok('-E', '-c', code, PYTHONTRACEMALLOC='1') |