Commit Graph

97 Commits

Author SHA1 Message Date
Ezio Melotti ff0deb0529 Fix markup in unittest doc. 2013-03-01 21:26:04 +02:00
Ezio Melotti 79b2dbaf3f Fix markup in unittest docs. 2013-02-28 08:28:11 +02:00
Chris Jerdonek 13cee1696f Issue #17203: add long option names to unittest discovery docs. 2013-02-21 18:52:12 -08:00
Ezio Melotti 6bb9c73b06 Add missing comma. 2012-08-29 17:50:42 +03:00
Ezio Melotti 30abb3a6a8 #14558: document the module, argv, and testLoader args of unittest.main. 2012-04-30 19:05:57 +03:00
Ezio Melotti 217e6a66db Fix markup in unittest doc. 2012-04-29 10:52:18 +03:00
Sandro Tosi 6ca845c66a use unittest.skip; thanks to Chang Min Jeon from docs@ 2012-03-31 18:34:42 +02:00
Sandro Tosi 2d71e5c6b9 fix typo; thanks to Justin Watt from docs@ 2012-01-21 10:59:12 +01:00
Ezio Melotti 055d70d588 #13695: fix a couple of typos in the doc. 2012-01-16 08:21:24 +02:00
Ezio Melotti 080b6f071f #13387: rephrase unclear sentence. 2011-12-19 07:04:48 +02:00
Ezio Melotti aa512f05a4 #13387: add note about checking the exact type in assertIsInstance doc. 2011-11-18 18:59:36 +02:00
Éric Araujo a7cbe28bcc Avoid using the default reST role. Makes Doc/tools/rstlint.py happy. 2011-09-01 19:49:31 +02:00
Ezio Melotti c3ab30b363 Fix typo. 2011-03-12 22:21:37 +02:00
Ezio Melotti 3cbb66b0d9 Use simpler assert in basic example. 2011-03-10 23:35:39 +02:00
Ezio Melotti dd7c593c1f Backport from 3.x several improvements and fixes for unittest.rst. 2011-03-10 23:00:48 +02:00
Ezio Melotti 9e1ed47e91 #11298: Improve the unittest discovery explanation. 2011-03-08 17:08:25 +02:00
Georg Brandl 52f839540c Merged revisions 86881,86887,86913-86915,86933,86943,86960,86964,86974,86980,86996,87008 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86881 | georg.brandl | 2010-11-30 08:43:28 +0100 (Di, 30 Nov 2010) | 1 line

  #10584: fix bad links.
........
  r86887 | georg.brandl | 2010-11-30 15:57:54 +0100 (Di, 30 Nov 2010) | 1 line

  Fix typo.
........
  r86913 | georg.brandl | 2010-12-01 16:32:43 +0100 (Mi, 01 Dez 2010) | 1 line

  Add missing word, and add a better reference to the actual function.
........
  r86914 | georg.brandl | 2010-12-01 16:36:33 +0100 (Mi, 01 Dez 2010) | 1 line

  #10594: fix parameter names in PyList API docs.
........
  r86915 | georg.brandl | 2010-12-01 16:44:25 +0100 (Mi, 01 Dez 2010) | 1 line

  Fix some markup and style in the unittest docs.
........
  r86933 | georg.brandl | 2010-12-02 19:02:01 +0100 (Do, 02 Dez 2010) | 1 line

  #10597: fix Py_SetPythonHome docs by pointing to where the meaning of PYTHONHOME is already documented.
........
  r86943 | georg.brandl | 2010-12-02 23:35:25 +0100 (Do, 02 Dez 2010) | 1 line

  Re-add accidentally removed line.
........
  r86960 | georg.brandl | 2010-12-03 08:55:44 +0100 (Fr, 03 Dez 2010) | 1 line

  #10360: catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does.
........
  r86964 | georg.brandl | 2010-12-03 10:58:38 +0100 (Fr, 03 Dez 2010) | 1 line

  #10549: fix interface of docclass() for text documenter.
........
  r86974 | georg.brandl | 2010-12-03 16:30:09 +0100 (Fr, 03 Dez 2010) | 1 line

  Markup consistency fixes.
........
  r86980 | georg.brandl | 2010-12-03 18:19:27 +0100 (Fr, 03 Dez 2010) | 1 line

  Fix punctuation.
........
  r86996 | georg.brandl | 2010-12-03 20:56:42 +0100 (Fr, 03 Dez 2010) | 1 line

  Fix indentation.
........
  r87008 | georg.brandl | 2010-12-04 10:04:04 +0100 (Sa, 04 Dez 2010) | 1 line

  Fix typo.
........
2011-02-25 10:39:23 +00:00
Éric Araujo a8132ec27e Merged revisions 86521,86632,86823-86824,87294,87296,87300,87302 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r86521 | eric.araujo | 2010-11-18 17:38:46 +0100 (jeu., 18 nov. 2010) | 17 lines

  Fix usage of :option: in the docs (#9312).

  :option: is used to create a link to an option of python, not to mark
  up any instance of any arbitrary command-line option.  These were
  changed to ````.

  For modules which do have a command-line interface, lists of options
  have been properly marked up with the program/cmdoption directives
  combo.  Options defined in such blocks can be linked to with :option:
  later in the same file, they won’t link to an option of python.

  Finally, the markup of command-line fragments in optparse.rst has
  been cleaned to use ``x`` instead of ``"x"``, keeping that latter
  form for actual Python strings.

  Patch by Eli Bendersky and Éric Araujo.
........
  r86632 | eric.araujo | 2010-11-21 04:09:17 +0100 (dim., 21 nov. 2010) | 2 lines

  Style edits in followup to r86521 (#9312)
........
  r86823 | eric.araujo | 2010-11-27 00:31:07 +0100 (sam., 27 nov. 2010) | 2 lines

  Use link-generating markup (see #9312)
........
  r86824 | eric.araujo | 2010-11-27 00:46:18 +0100 (sam., 27 nov. 2010) | 2 lines

  Rewrap long lines + minor edits
........
  r87294 | eric.araujo | 2010-12-16 01:07:01 +0100 (jeu., 16 déc. 2010) | 2 lines

  No need to generate a link for something that’s just above.
........
  r87296 | eric.araujo | 2010-12-16 01:23:30 +0100 (jeu., 16 déc. 2010) | 2 lines

  Advertise “python -m” instead of direct filename.
........
  r87300 | eric.araujo | 2010-12-16 02:40:26 +0100 (jeu., 16 déc. 2010) | 2 lines

  Advertise “python -m test” over test.regrtest (r87296 followup)
........
  r87302 | eric.araujo | 2010-12-16 03:10:11 +0100 (jeu., 16 déc. 2010) | 2 lines

  Add versionadded directive missing from r78983.
........
2010-12-16 03:53:53 +00:00
Georg Brandl 0930228aee Merged revisions 84945 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84945 | georg.brandl | 2010-09-21 16:48:28 +0200 (Di, 21 Sep 2010) | 1 line

  #9911: doc copyedits.
........
2010-10-06 09:32:48 +00:00
Michael Foord 8dde20168a Documentation updates for issues 8302 and 8351 (truncating excessive diffs in unittest failure messages and reporting SkipTest exceptions in setUpClass and setUpModule as skips rather than errors). 2010-06-05 21:57:03 +00:00
Stefan Krah 4a769059be Fix typo. 2010-05-19 15:59:40 +00:00
Georg Brandl 6f635f41f2 Consolidate deprecation messages. 2010-05-10 21:50:57 +00:00
Michael Foord 959c16d7a4 Updating documentation and adding docstrings to unittest.TestCase.assertRegexpMatches and assertNotRegexpMatches. Issue 8038. 2010-05-08 16:40:52 +00:00
Michael Foord 8851b71c6f Documenting test discovery from package name and potential problems with test discovery importing tests from the wrong location. Issue 7780 and issue 8547. 2010-05-08 15:09:37 +00:00
Andrew M. Kuchling 603831825b Markup fix; clarify by adding 'in that order' 2010-04-30 01:32:47 +00:00
Andrew M. Kuchling 545336673e Fix typos 2010-04-30 01:02:15 +00:00
Andrew M. Kuchling fb759a25f2 Fix doubled 'the'.
Markup fixes to use :exc:, :option: in a few places.
  (Glitch: unittest.main's -c ends up a link to the Python
  interpreter's -c option.  Should we skip using :option: for that
  switch, or disable the auto-linking somehow?)
2010-04-29 01:44:30 +00:00
Michael Foord 47b5440f43 Adding versionadded to various new unittest functions in documentation 2010-04-26 23:36:47 +00:00
Michael Foord 5c322ece96 Adding unittest.removeHandler function / decorator for removing the signal.SIGINT signal handler. With tests and docs. 2010-04-25 19:02:46 +00:00
Barry Warsaw fa900d47b8 typo 2010-04-12 14:40:49 +00:00
Georg Brandl 90aae551b1 #8360: skipTest was added in 2.7. 2010-04-10 11:15:24 +00:00
Michael Foord efc2f497fd Correction of unittest documentation typos and omissions 2010-04-08 04:33:20 +00:00
Michael Foord d341ec82c7 Further documentation fix for unittest.rst 2010-04-05 10:30:14 +00:00
Michael Foord c5ff3f6ff0 Furterh documentation fix for unittest.rst 2010-04-05 10:28:27 +00:00
Michael Foord 3165503b4a Documentation fixes for unittest 2010-04-05 10:26:26 +00:00
Michael Foord 554303530c Document signal handling functions in unittest.rst 2010-04-05 00:39:50 +00:00
Michael Foord ddb20df018 Adding documentation for new unittest.main() parameters 2010-04-04 23:28:44 +00:00
Michael Foord 09e2980c15 unittest documentation formatting changes 2010-04-04 22:41:54 +00:00
Michael Foord ba097ec1be Documenting new features in unittest 2010-04-03 17:03:11 +00:00
Michael Foord 98e7b7644b Issue 7832: renaming unittest.TestCase.assertSameElements to assertItemsEqual and changing behaviour 2010-03-20 03:00:34 +00:00
Raymond Hettinger 08090bf36a Improve the basic example.
* Show both the decorator and regular form for assertRaises()
* Use assertTrue() instead of assertIn() to teach useful minimal subset of the API
2010-03-09 08:44:18 +00:00
Ezio Melotti 68beef6633 Pep8ify test names in the examples. 2010-02-28 03:11:07 +00:00
Michael Foord db43b5a1f5 Issue 7893 and Issue 7588 2010-02-10 14:25:12 +00:00
Michael Foord 7b5aa463f9 Doc fix for unittest. 2010-02-08 23:15:22 +00:00
Michael Foord fe6349c965 Make assertMultiLineEqual the default for comparing unicode strings. 2010-02-08 22:41:16 +00:00
Georg Brandl dc3694bee0 Rename "exc_value" attribute on assertRaises context manager to "exception". 2010-02-07 17:02:22 +00:00
Georg Brandl 1c7c7304a3 #7864: make deprecation notices a bit clearer. 2010-02-06 10:08:21 +00:00
Michael Foord ba7732ea6a Minor doc change. 2010-02-05 23:28:12 +00:00
Michael Foord fb0844bcc8 Adding versionadded to test skipping section of unittest documentation. 2010-02-05 21:45:12 +00:00
Michael Foord 1f3fa8ae68 Example of using assertRaises as a context manager in the unittest documentation. 2010-02-05 21:07:38 +00:00