Message212510
After applying patch 'regrtest.diff' from issue 20746, the command:
$ ./python -m test -W -R3:3 test_pdb
succeeds now and shows there are no reference leaks.
However, with the following change in Lib/test/test_pdb.py and patch 'regrtest.diff' applied:
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -34,7 +34,7 @@
"""This tests the custom displayhook for pdb.
>>> def test_function(foo, bar):
- ... import pdb; pdb.Pdb(nosigint=True).set_trace()
+ ... import pdb; pdb.Pdb().set_trace()
... pass
>>> with PdbTestInput([
there are reference leaks:
$ ./python -m test -R 3:3 test_pdb
[1/1] test_pdb
beginning 6 repetitions
123456
......
test_pdb leaked [200, 200, 200] references, sum=600
test_pdb leaked [43, 43, 43] memory blocks, sum=129
1 test failed:
test_pdb
And now with the proposed patch in the previous msg 212171 'refleak.patch' of this issue that fixes the sigint_handler leak, and also patch 'regrtest.diff' applied:
$ ./python -m test -R 3:3 test_pdb
[1/1] test_pdb
beginning 6 repetitions
123456
......
1 test OK. |
|
Date |
User |
Action |
Args |
2014-03-01 16:05:39 | xdegaye | set | recipients:
+ xdegaye, georg.brandl |
2014-03-01 16:05:39 | xdegaye | set | messageid: <1393689939.2.0.0962132346409.issue20766@psf.upfronthosting.co.za> |
2014-03-01 16:05:39 | xdegaye | link | issue20766 messages |
2014-03-01 16:05:38 | xdegaye | create | |
|