@@ -1328,13 +1328,13 @@ def __run(self, test, compileflags, out):
1328
1328
# Don't blink! This is where the user's code gets run.
1329
1329
exec (compile (example .source , filename , "single" ,
1330
1330
compileflags , 1 ), test .globs )
1331
- self .debugger .set_continue () # ==== Example Finished ====
1331
+ # self.debugger.set_continue() # ==== Example Finished ====
1332
1332
exception = None
1333
1333
except KeyboardInterrupt :
1334
1334
raise
1335
1335
except :
1336
1336
exception = sys .exc_info ()
1337
- self .debugger .set_continue () # ==== Example Finished ====
1337
+ # self.debugger.set_continue() # ==== Example Finished ====
1338
1338
1339
1339
got = self ._fakeout .getvalue () # the actual output
1340
1340
self ._fakeout .truncate (0 )
@@ -1457,11 +1457,12 @@ def out(s):
1457
1457
# Note that the interactive output will go to *our*
1458
1458
# save_stdout, even if that's not the real sys.stdout; this
1459
1459
# allows us to write test cases for the set_trace behavior.
1460
- save_trace = sys .gettrace ()
1461
- save_set_trace = pdb .set_trace
1462
- self .debugger = _OutputRedirectingPdb (save_stdout )
1463
- self .debugger .reset ()
1464
- pdb .set_trace = self .debugger .set_trace
1460
+ # Truffle change: disable tracing
1461
+ # save_trace = sys.gettrace()
1462
+ # save_set_trace = pdb.set_trace
1463
+ # self.debugger = _OutputRedirectingPdb(save_stdout)
1464
+ # self.debugger.reset()
1465
+ # pdb.set_trace = self.debugger.set_trace
1465
1466
1466
1467
# Patch linecache.getlines, so we can see the example's source
1467
1468
# when we're inside the debugger.
@@ -1476,8 +1477,8 @@ def out(s):
1476
1477
return self .__run (test , compileflags , out )
1477
1478
finally :
1478
1479
sys .stdout = save_stdout
1479
- pdb .set_trace = save_set_trace
1480
- sys .settrace (save_trace )
1480
+ # pdb.set_trace = save_set_trace
1481
+ # sys.settrace(save_trace)
1481
1482
linecache .getlines = self .save_linecache_getlines
1482
1483
sys .displayhook = save_displayhook
1483
1484
if clear_globs :
0 commit comments