[Python-checkins] cpython: touch _lsprof's clear() method for C code coverage

christian.heimes python-checkins at python.org
Thu Dec 5 07:53:48 CET 2013


http://hg.python.org/cpython/rev/0a4ae134d34e
changeset:   87773:0a4ae134d34e
user:        Christian Heimes <christian at cheimes.de>
date:        Thu Dec 05 07:40:29 2013 +0100
summary:
  touch _lsprof's clear() method for C code coverage

files:
  Lib/test/test_cprofile.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_cprofile.py b/Lib/test/test_cprofile.py
--- a/Lib/test/test_cprofile.py
+++ b/Lib/test/test_cprofile.py
@@ -29,6 +29,7 @@
                     obj.enable()
                     obj = _lsprof.Profiler(1)
                     obj.disable()
+                    obj.clear()
                 finally:
                     sys.stderr = orig_stderr
         finally:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list