[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-11 Thread STINNER Victor
STINNER Victor added the comment: All Refleaks buildots are back to green, thanks ;-) -- ___ Python tracker ___ ___

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: All changes related to this issue are done. Thanks for your contribution and engagement everyone! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 0167c08163f44f4a033497102244bbb6150f606b by Senthil Kumaran in branch '2.7': bpo-24746: Fix doctest failures when running the testsuite with -R (#11501) (#11512)

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Ned Deily
Ned Deily added the comment: New changeset d09e8cecf214b1de457feae01860f5592f912a8e by Ned Deily (Senthil Kumaran) in branch '3.6': Revert "bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639) (GH-11477)" (GH-11509)

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +11067, 11068, 11070 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +11067, 11068 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +11067, 11068, 11069, 11070 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +11067 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +11058, 11059, 11060 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +11058, 11059 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +11058 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread miss-islington
miss-islington added the comment: New changeset 1cbd17c6987afc48c16caa7ccc7d19b01fbd39f2 by Miss Islington (bot) in branch '3.7': bpo-24746: Fix doctest failures when running the testsuite with -R (GH-11501) https://github.com/python/cpython/commit/1cbd17c6987afc48c16caa7ccc7d19b01fbd39f2

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread STINNER Victor
STINNER Victor added the comment: > Finally, since the the port to 3.6 was a mistake, I will revert that. I wrote PR 11499 but I closed it because PR #11501 has been merged, but yeah, maybe a revert is the best option for 3.6. No problem, the status change of the 3.6 branch is very new, and

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi All, It was my mistake to merge this in into 3.6, I didn't realize 3.6 was in bugfix mode now. Also I went by the versions (previously) set in this bpo issue. For the regression caused in refleaks, I think, Pablo's patch will fix it, and I am verifying

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +11044, 11045, 11046 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +11044, 11045 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +11044 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset c5dc60ea858b8ccf78e8d26db81c307a8f9b2314 by Senthil Kumaran (Pablo Galindo) in branch 'master': bpo-24746: Fix doctest failures when running the testsuite with -R (#11501)

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +11030, 11031, 11032 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I made https://github.com/python/cpython/pull/11501 to fix this problem. After my patch: ❯ ./python.exe -m test test_doctest test_doctest Run tests sequentially 0:00:00 load avg: 1.82 [1/2] test_doctest 0:00:02 load avg: 1.82 [2/2] test_doctest ==

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +11030 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +11030, 11031 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- versions: -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11026, 11027 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11026 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11026, 11027, 11028 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11023, 11024, 11025 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11023 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11023, 11024 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11020, 11021 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11020, 11021, 11022 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11020 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
STINNER Victor added the comment: Oh. The 3.6, 3.7 and master changes broke the Refleaks buildbots... By the way, why was such bugfix merged into the 3.6 branch which is now in security-only mode? Please fix this bug ASAP, or I will revert the change. --

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
STINNER Victor added the comment: In short, this buildbot runs "./python -m test -R 3:3 test_doctest". But here the bug is just that running the test twice in a row fails. -- ___ Python tracker

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread Sanyam Khurana
Sanyam Khurana added the comment: Hi Victor, Senthil reverted the backport commit on 2.7 branch. Is there a way I can test reference leaks in CPython? Is it using valgrind or some other tool? Can you please point me to that? I can then see if I can fix this on 2.7 Thanks! --

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
STINNER Victor added the comment: Yeah, I confirm that it's a regression caused by commit 02e33d9567aa4bd612f9f08053acbfd5e68480d0: "./python -m test test_doctest test_doctest" fails after this commit, but pass before this commit. -- ___ Python

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread STINNER Victor
STINNER Victor added the comment: test_doctest starts to fail on AMD64 Windows8.1 Refleaks 2.7: https://buildbot.python.org/all/#/builders/33/builds/471 It may be related to: New changeset 02e33d9567aa4bd612f9f08053acbfd5e68480d0 by Senthil Kumaran (Sanyam Khurana) in branch '2.7': [2.7]

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 02e33d9567aa4bd612f9f08053acbfd5e68480d0 by Senthil Kumaran (Sanyam Khurana) in branch '2.7': [2.7] bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (#11482)

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +10999, 11000 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +10999 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 5d9ae8b9df8371dd65514e0d60b561fd37056986 by Senthil Kumaran (Miss Islington (bot)) in branch '3.6': bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639) (#11477)

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread miss-islington
miss-islington added the comment: New changeset 53cf5f084b01cb16630361be5377047c068d2b44 by Miss Islington (bot) in branch '3.7': bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639) https://github.com/python/cpython/commit/53cf5f084b01cb16630361be5377047c068d2b44

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +10982, 10983, 10984, 10985, 10986 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +10981 stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +10981, 10982, 10983, 10984, 10985 stage: test needed -> patch review ___ Python tracker ___

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +10981, 10982 stage: test needed -> patch review ___ Python tracker ___ ___

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +10982, 10985 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread miss-islington
Change by miss-islington : -- pull_requests: +10981, 10982, 10983, 10985 stage: test needed -> patch review ___ Python tracker ___

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2019-01-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset cbb16459934eaf29c7c7d362939cd05550b2f21f by Senthil Kumaran (Sanyam Khurana) in branch 'master': bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (#10639)

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-22 Thread Sanyam Khurana
Change by Sanyam Khurana : -- assignee: -> CuriousLearner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-22 Thread Sanyam Khurana
Sanyam Khurana added the comment: Thanks for your suggestion, Tim. I've fixed the patch and it is ready for review at https://github.com/python/cpython/pull/10639 -- ___ Python tracker

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-21 Thread Tim Peters
Tim Peters added the comment: To include trailing whitespace on a line in a doctest, _don't_ use raw strings. Use a regular string, and include add a (one or more) trailing \x20 instead of a space (for example). For example: r""" >>> print("a ") a """ where there's a space at the end of

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-21 Thread Sanyam Khurana
Sanyam Khurana added the comment: > Unfortunately I was reminded a few days ago that there is a commit hook that > prevents patches containing trailing whitespace from being committed to the > repository. Is this still the case? I tried to figure out writing the test case, but I can't wrap

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-21 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +9886 stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2018-11-21 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +9886, 9887 stage: test needed -> patch review ___ Python tracker ___ ___

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2015-08-17 Thread Jairo Trad
Jairo Trad added the comment: I can write a unittest for this, where should I write it? a new test file? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24746 ___

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2015-08-17 Thread R. David Murray
R. David Murray added the comment: I believe you can put it in the test_doctest file, and call it using the appropriate runner from test.support from the test_main function. I haven't tried it though. -- ___ Python tracker rep...@bugs.python.org

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2015-08-16 Thread Jairo Trad
Jairo Trad added the comment: I have patched this as explained by David. Also the tests are working. Another test broke because a missing trailing space. I fixed that too. This is my first patch :D -- nosy: +jairotrad Added file: http://bugs.python.org/file40191/issue24746.patch

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2015-08-16 Thread R. David Murray
R. David Murray added the comment: Unfortunately I was reminded a few days ago that there is a commit hook that prevents patches containing trailing whitespace from being committed to the repository. So using doctest to test this isn't going to work. The alternatives are to write a unit

[issue24746] doctest 'fancy diff' formats incorrectly strip trailing whitespace

2015-07-28 Thread R. David Murray
New submission from R. David Murray: I got a doctest failure that when I wrote the output to a file showed two exactly identical lines reported as being different. Turning off the fancy diff, I could see trailing whitespace on one of the lines. It turns out that when a fancy diff is