[issue11298] unittest discovery needs better explanation

2011-03-15 Thread R. David Murray
R. David Murray added the comment: Drat, I accidentally deleted the patch file. Reattaching. -- nosy: +r.david.murray Added file: http://bugs.python.org/file21234/issue11298_py2.7.patch ___ Python tracker ___

[issue11298] unittest discovery needs better explanation

2011-03-15 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file21043/issue11298_py2.7.patch ___ Python tracker ___ ___ Python-bugs-list

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed on 2.7, 3.2 and py3k, thanks for the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti
Ezio Melotti added the comment: #11298: Improve the unittest discovery explanation. http://hg.python.org/cpython/rev/88b5a93b1725 -- ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti
Ezio Melotti added the comment: #11298: merge from 3.2. http://hg.python.org/cpython/rev/fa23f323d747 -- ___ Python tracker ___ ___ P

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti
Ezio Melotti added the comment: #11298: Improve the unittest discovery explanation. http://hg.python.org/cpython/rev/bbf8a8a1af17 -- ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: docs@python -> ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
blokeley added the comment: Patch for 3.2 branch. This is the first time I've submitted patches so I hope the format is OK. If I could have submitted 1 patch to apply to 2.7, 3.2 and py3k at the same time let me know. Hope this helps. -- Added file: http://bugs.python.org/file21044/is

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
blokeley added the comment: Patch for 2.7 branch. -- Added file: http://bugs.python.org/file21043/issue11298_py2.7.patch ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
blokeley added the comment: Patch for py3k (default branch). -- Added file: http://bugs.python.org/file21042/issue11298_default.patch ___ Python tracker ___

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20866/py3.2-maint_rev9895_issue11298.patch ___ Python tracker ___ ___ Python-b

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20865/py2.7-maint_rev45852_issue11298.patch ___ Python tracker ___ ___ Python-

[issue11298] unittest discovery needs better explanation

2011-03-08 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20863/py3k_rev9921_issue11298.patch ___ Python tracker ___ ___ Python-bugs-list

[issue11298] unittest discovery needs better explanation

2011-03-07 Thread Éric Araujo
Éric Araujo added the comment: I find there are some redundancy and perfectible phrasing. Here’s my rewrite: In order to be compatible with test discovery, all of the test files must be :ref:`modules ` or :ref:`packages ` importable from the top-level directory of the project (this means tha

[issue11298] unittest discovery needs better explanation

2011-03-07 Thread Michael Foord
Michael Foord added the comment: Sounds good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue11298] unittest discovery needs better explanation

2011-03-06 Thread blokeley
blokeley added the comment: Is this wording correct? """ In order to be compatible with test discovery, all of the test modules must be importable from the top level directory of the project (in other words, they must be part of the project :ref:`package ` or directly importable :ref:`module

[issue11298] unittest discovery needs better explanation

2011-02-26 Thread Michael Foord
Michael Foord added the comment: No, tests as top level modules work fine too. Importability is the only requirement. (Projects themselves are not typically packages but contain packages - so the wording needs to change slightly but I like the rest.) -- __

[issue11298] unittest discovery needs better explanation

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: I like that. Is it true that test discovery requires tests to be in a Python package, as opposed to top-level modules? -- ___ Python tracker ___

[issue11298] unittest discovery needs better explanation

2011-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: What about something like """ In order to be compatible with test discovery, all the test modules must be importable from the top level directory of the project (in other words, they must be part of the project :ref:`package `, and their name must be valid :ref

[issue11298] unittest discovery needs better explanation

2011-02-25 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure what’s best between the proposed addition and a link to the definition of module/importable. I think that programmers should know that not all file names are valid module names, so I wouldn’t want us to copy the definition all over the docs. Thoug

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Michael Foord
Michael Foord added the comment: Hey, blokeley the same patch will apply cleanly against 3.2 / 3.3 so no worries. -- ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Added release3.2-maint patch. I created the patches by cloning the corresponding hg repo from http://code.python.org/hg If this is the wrong thing to do, let me know. I have no idea where the 3.3 branch is. Please advise. -- Added file: http://bugs.python

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Added release2.7-maint patch. -- Added file: http://bugs.python.org/file20865/py2.7-maint_rev45852_issue11298.patch ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20864/py2.7-maint_rev45852_issue11298.patch ___ Python tracker ___ ___ Python-

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Added release2.7-maint patch. -- Added file: http://bugs.python.org/file20864/py2.7-maint_rev45852_issue11298.patch ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Michael Foord
Michael Foord added the comment: Thanks blokely, looks good. Needs applying to 2.7 / 3.2 and 3.3 branches. -- ___ Python tracker ___

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : Added file: http://bugs.python.org/file20863/py3k_rev9921_issue11298.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : Removed file: http://bugs.python.org/file20862/py3k_rev9921_issue11298.patch ___ Python tracker ___ ___ Python-bugs-list

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
Changes by blokeley : -- keywords: +patch Added file: http://bugs.python.org/file20862/py3k_rev9921_issue11298.patch ___ Python tracker ___ __

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Ezio Melotti
Ezio Melotti added the comment: http://code.python.org/hg/branches/py3k/ -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
blokeley added the comment: Will do but I haven't submitted a patch before and it's impossible to tell from python.org/dev whether to use the svn or hg repositories. If possible, please just let me know the URL of the hg repository against which I should make the patch (I don't currently have

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread Michael Foord
Michael Foord added the comment: Sounds like a good change to the docs. Care to provide a patch? -- nosy: +michael.foord ___ Python tracker ___ _

[issue11298] unittest discovery needs better explanation

2011-02-23 Thread blokeley
New submission from blokeley : `python -m unittest discover` caught me out. I had a test module called `test-foo.py` and no test was loaded. When I renamed to `test_foo.py` it worked. The documentation says "For a project’s tests to be compatible with test discovery they must all be importab