summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bdb.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2018-05-17 13:46:00 (GMT)
committerGitHub <noreply@github.com>2018-05-17 13:46:00 (GMT)
commit0d8f83f59c8f4cc7fe125434ca4ecdcac111810f (patch)
tree3c6c215a18a6aa94b8f3198d2b550586315a55a8 /Lib/test/test_bdb.py
parente4cd12d3d338e691ab0c12a2f2f90422eee04bda (diff)
downloadcpython-0d8f83f59c8f4cc7fe125434ca4ecdcac111810f.zip
cpython-0d8f83f59c8f4cc7fe125434ca4ecdcac111810f.tar.gz
cpython-0d8f83f59c8f4cc7fe125434ca4ecdcac111810f.tar.bz2
bpo-33522: Enable CI builds on Visual Studio Team Services (GH-6865) (GH-6925)
Diffstat (limited to 'Lib/test/test_bdb.py')
-rw-r--r--Lib/test/test_bdb.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_bdb.py b/Lib/test/test_bdb.py
index abefe6c..a366678 100644
--- a/Lib/test/test_bdb.py
+++ b/Lib/test/test_bdb.py
@@ -417,15 +417,17 @@ class TracerRun():
self.dry_run = test_case.dry_run
self.tracer = Tracer(test_case.expect_set, skip=skip,
dry_run=self.dry_run, test_case=test_case.id())
+ self._original_tracer = None
def __enter__(self):
# test_pdb does not reset Breakpoint class attributes on exit :-(
reset_Breakpoint()
+ self._original_tracer = sys.gettrace()
return self.tracer
def __exit__(self, type_=None, value=None, traceback=None):
reset_Breakpoint()
- sys.settrace(None)
+ sys.settrace(self._original_tracer)
not_empty = ''
if self.tracer.set_list: