[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon : -- stage: patch review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-11-17 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-11-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb3714863872 by Brett Cannon in branch 'default': Issue #10966: Remove the concept of unexpected skipped tests. http://hg.python.org/cpython/rev/eb3714863872 -- nosy: +python-dev ___ Python tracker

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-11-15 Thread Brett Cannon
Brett Cannon added the comment: I'm at PyCon Argentina Friday and Saturday, so I have a rare opportunity to get stuff done. If anyone has issues or comments, please get them in over the next day or so, else I'm going to check this in as-is. -- ___ P

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-11-14 Thread Brett Cannon
Brett Cannon added the comment: Here is a new patch which removes the expected skips stuff and adds a required_on argument to test.support.import_module() for those cases where missing a module is an error (in the patch it's _winreg on Windows). If people are fine with this cleanup then the qu

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-11-12 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-10-30 Thread Brett Cannon
Changes by Brett Cannon : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-10-30 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-04-01 Thread Éric Araujo
Éric Araujo added the comment: +1 to Ezio’s last message. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

Re: [issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-30 Thread Senthil Kumaran
+1 to the counter argument that "Unexpected Skips should not be marked as failures". Also, I like the following proposal of giving better messages on skips useful. On Sat, Mar 26, 2011 at 07:53:34AM +, Ezio Melotti wrote: > It's also possible to provide better skip messages, e.g.: > -test_wi

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-30 Thread Andrej Krpic
Changes by Andrej Krpic : -- nosy: +akrpic77 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-26 Thread R. David Murray
R. David Murray added the comment: Well, I'm not so attached to the unexpected skip list that I want to block this from getting implemented. So I guess the bottom line is that things that are unexpected skips now should not be failures. -- ___ Pyt

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-26 Thread Ezio Melotti
Ezio Melotti added the comment: IMHO the current "unexpected" list is fairly pointless. I just ran the test suite on 3.3 and I got the usual expected list of unexpected skips: 7 skips unexpected on linux2: test_bz2 test_dbm_gnu test_dbm_ndbm test_tcl test_tk test_ttk_guionly test_ttk_t

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-26 Thread Ezio Melotti
Changes by Ezio Melotti : Removed file: http://bugs.python.org/file21381/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread R. David Murray
R. David Murray added the comment: Antoine wrote: > Do you want to keep track of the specificities of each version of the *BSDs? Currently regrtest does, but they are currently all set to the same list of tests. Perhaps a FreeBSD generic that implies all versions, and then if we ever have a

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Brett Cannon
Brett Cannon added the comment: On Thu, Mar 24, 2011 at 15:22, Antoine Pitrou wrote: Sure, but do the buildbots pick up on this fact in some visible way? > Perhaps we can keep required/optional for core things like "posix" or > "winreg". But failing the test suite because ctypes doesn't compil

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I can change it to 'required' and 'optional'. > > As for Antoine's comment, do you have another suggestion? I realize it > isn't necessarily easier per se to manage these lists than the > 'expected' list, but what would you rather have happen? > Simply say te

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Brett Cannon
Brett Cannon added the comment: I can change it to 'required' and 'optional'. As for Antoine's comment, do you have another suggestion? I realize it isn't necessarily easier per se to manage these lists than the 'expected' list, but what would you rather have happen? Simply say tests are skip

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The attached patch has both the code to make test skipping more > obvious as well as eliminating the concept of expected skips. I still don't like the idea that we have to hand-maintain lists of "optional" or "required" platforms. It is not more manageable th

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Éric Araujo
Éric Araujo added the comment: It’s only the names that are not symmetrical (“_on” or not). -- ___ Python tracker ___ ___ Python-bugs

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Brett Cannon
Brett Cannon added the comment: In terms of the symmetrical comment, what exactly do you mean? The semantics are opposites of each other. Do you not like the name? Or did I screw up and they truly aren't opposites? -- ___ Python tracker

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Éric Araujo
Éric Araujo added the comment: I’m probably the one with the least regrtest knowledge among us, but I like the general idea of moving the compat info from one huge dict into the tests themselves. It looks more readable and maintainable. The new tests for test.support looks good. I have a re

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-23 Thread Brett Cannon
Brett Cannon added the comment: The attached patch has both the code to make test skipping more obvious as well as eliminating the concept of expected skips. If someone can double-check that what I am doing here is sane and desirable I would appreciate it. -- assignee: brett.cannon -

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: New patch which makes test_pipes back into an explicit skip if os.name !+ posix and makes test_sqlite optional on all platforms. -- Added file: http://bugs.python.org/file20737/issue10966.diff ___ Python tracker

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch works fine on Linux but breaks test_pipes and test_sqlite on Windows: [1/1] test_pipes testBadAppendOptions (test.test_pipes.SimplePipeTests) ... ok testBadOpenMode (test.test_pipes.SimplePipeTests) ... ok testBadPrependOptions (test.test_pipes.Simple

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: Here is the completed patch. It adds required_on and 'optional' args to test.support.import_module() to help delineate if a test should **not** be skipped simply because a module could not be imported. It also changes various tests to use the new args. Finally,

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Changes by Brett Cannon : Removed file: http://bugs.python.org/file20725/issue10966.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: I should mention this would act as a nice testing doc for exactly which platforms CPython considers supported. -- ___ Python tracker ___ ___

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: One other option is to simply have a whitelist of platforms that test.support knows of so it only considers it a failure when the platform being run on is known (regrtest does this already). -- ___ Python tracker

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: You don't. ctypes failing under LLVM 2.8 should not be a special case of skipping; ctypes not building on darwin regardless of whether it is gcc or clang is a failure. If someone uses a compiler we don't support, that's their decision. --

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well, ctypes failing because it cannot compile is only when a platform > that is not listed as optional cannot import it. So if some platform > does not support ctypes then it gets added to the list, end of story. How do you add "llvm under darwin" (or any si

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: Well, ctypes failing because it cannot compile is only when a platform that is not listed as optional cannot import it. So if some platform does not support ctypes then it gets added to the list, end of story. We only support so many platforms as it is. And wit

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As for test_ttk and such, those that have a third-party dependency are > still optional no matter what. This change is **only** for modules we > expect to always build on certain platfoms (e.g., winreg under Windows > or crypt on UNIX systems). Ah, thanks for

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: I should also mention that if the idea of whitelisting failures doesn't fly, it can always be changed to be a blacklist of failures (i.e., ditch 'optional' and only use 'required_on'). But I did it this way to force people to clearly state on what platforms a test

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: So os.name is also supported. But the point is that if a platform wants to be considered supported then they need to give us a patch to update the tests to make them acceptable to skip. As for test_ttk and such, those that have a third-party dependency are stil

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm. I'm not sure passing a list of platforms is a good idea. People may want to write e.g. "'bsd' in platform". Also, there are a lot of platforms we don't have access to, so we can't actually maintain a list of platforms. Also, I really don't like the idea

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-09 Thread Brett Cannon
Changes by Brett Cannon : -- title: eliminate use of ImportError implicitly representing TestSkipped -> eliminate use of ImportError implicitly representing SkipTest ___ Python tracker