[issue18702] Report skipped tests as skipped

2013-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I forgot to merge branches? Thanks Ned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702 ___ ___

[issue18702] Report skipped tests as skipped

2013-11-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Related issues: issue19492 and issue19493. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702

[issue18702] Report skipped tests as skipped

2013-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1feeeb8992f8 by Serhiy Storchaka in branch '3.3': Issue #18702: All skipped tests now reported as skipped. http://hg.python.org/cpython/rev/1feeeb8992f8 New changeset 09105051b9f4 by Serhiy Storchaka in branch 'default': Issue #18702: All skipped

[issue18702] Report skipped tests as skipped

2013-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2d330f7908e7 by Serhiy Storchaka in branch '2.7': Issue #18702: All skipped tests now reported as skipped. http://hg.python.org/cpython/rev/2d330f7908e7 -- ___ Python tracker rep...@bugs.python.org

[issue18702] Report skipped tests as skipped

2013-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d8f0526813f by Serhiy Storchaka in branch '2.7': Fix test_os (issue #18702). http://hg.python.org/cpython/rev/0d8f0526813f -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702

[issue18702] Report skipped tests as skipped

2013-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a699550bc73b by Ned Deily in branch 'default': Issue #18702 null merge http://hg.python.org/cpython/rev/a699550bc73b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702

[issue18702] Report skipped tests as skipped

2013-10-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch is rebased to tip. -- Added file: http://bugs.python.org/file32245/skip_tests_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702 ___

[issue18702] Report skipped tests as skipped

2013-10-20 Thread Ned Deily
Ned Deily added the comment: I took a quick look at the revised patch. Clearly, it's too big to review at a detailed level. I tried the approach of running two complete verbose regrtest runs (-m test -v -uall), before and after the patch, and diffing the results in a smart diff app. Again,

[issue18702] Report skipped tests as skipped

2013-08-28 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702 ___ ___ Python-bugs-list

[issue18702] Report skipped tests as skipped

2013-08-28 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702 ___ ___ Python-bugs-list

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure I understand you Rietveld comment right Terry. We can get rid of _have_ssl (this is implementation detail and shouldn't be required) and just try import ssl. try: import ssl except ImportError: ssl = None If ssl is not None but

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: You changed NNTP_CLASS = nntplib.NNTP_SSL, which could potentially fail, to NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None), which cannot fail. Since that was the only thing that previously could fail, the change leaves nothing that can fail, so the test is

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You changed NNTP_CLASS = nntplib.NNTP_SSL, which could potentially fail, to NNTP_CLASS = getattr(nntplib, 'NNTP_SSL', None), which cannot fail. Since that was the only thing that previously could fail, the change leaves nothing that can fail, so the

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: My original suggestion was to put the possibly failing assignment inside @classmethod def setUpClass: NNTP_CLASS = nntplib.NNTP_SSL so that failure of the assignment would be be reported, but not affect import. --

[issue18702] Report skipped tests as skipped

2013-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually you should call parent's setUpClass at the and of declared setUpClass. Therefore you need 4 nontrivial lines instead of 1. The test will fail in setUpClass() in any case because parent's setUpClass() uses NNTP_CLASS. There are no behavior

[issue18702] Report skipped tests as skipped

2013-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Which one is the preferred way to go? requires or test needs or needs? Or it does not matter? I used the wording which used in other skips in the same file or in similar skips in other files. If it matters I will correct messages. Which one is the

[issue18702] Report skipped tests as skipped

2013-08-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch applies cleanly on my 3.4 Win 7, fresh debug build. Somewhat fortuitously, as it turns out, I have not downloaded the files needed for ssl support. For each modified file, I ran python_d -m test -v test_xxx test test_nntplib crashed -- Traceback

[issue18702] Report skipped tests as skipped

2013-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ezio and Terry for review. Here is updated patch. Problems with class initialization solved. I have made a lot of other changes especially in test_os.py and test_posix.py. -- Added file: http://bugs.python.org/file31233/skip_tests_2.patch

[issue18702] Report skipped tests as skipped

2013-08-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Applies and runs (with text_posix entirely skipped). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18702 ___

[issue18702] Report skipped tests as skipped

2013-08-11 Thread Vajrasky Kok
Vajrasky Kok added the comment: I read the patch. It looks good. Anyway, I have two questions: 1. I saw 3 variants of writing description for skipping test descriptor: requires os.mkfifo test needs socket.inet_pton() needs os.read Which one is the preferred way to go? requires or test

[issue18702] Report skipped tests as skipped

2013-08-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some tests in Python testsuite are silently skipped if requirements is not satisfied. The proposed patch adds explicit skipUnless() and raise SkipTest() so that these tests now reported as skipped. I.e. the code like if not condition: def