Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11301)

Unified Diff: Lib/test/test_trace.py

Issue 10541: regrtest.py -T broken
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/trace.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Lib/test/test_trace.py
===================================================================
--- Lib/test/test_trace.py (revision 87227)
+++ Lib/test/test_trace.py (working copy)
@@ -9,7 +9,6 @@
from test.tracedmodules import testmod
-
#------------------------------- Utilities -----------------------------------#
def fix_ext_py(filename):
@@ -220,7 +219,12 @@
def setUp(self):
self.tracer = Trace(count=0, trace=0, countfuncs=1)
self.filemod = my_file_and_modname()
+ self._saved_tracefunc = sys.gettrace()
+ def tearDown(self):
+ if self._saved_tracefunc is not None:
+ sys.settrace(self._saved_tracefunc)
+
def test_simple_caller(self):
self.tracer.runfunc(traced_func_simple_caller, 1)
« no previous file with comments | « no previous file | Lib/trace.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+