summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bdb.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2018-05-16 21:50:29 (GMT)
committerGitHub <noreply@github.com>2018-05-16 21:50:29 (GMT)
commite5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3 (patch)
tree08165b95d947b31d76f1dcf8fb261a167becd181 /Lib/test/test_bdb.py
parent713a9367366c88662c39ed20dd6bce22399299f1 (diff)
downloadcpython-e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3.zip
cpython-e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3.tar.gz
cpython-e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3.tar.bz2
bpo-33522: Enable CI builds on Visual Studio Team Services (#6865)
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 bda74a2..616c3a8 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: