summaryrefslogtreecommitdiff
path: root/docutils/test/package_unittest.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge ``package_unittest`` into ``alltests.py``aa-turner2022-10-211-77/+0
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9160 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Simplify ``package_unittest.loadTestModules``aa-turner2022-10-211-24/+14
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9153 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Inline ``package_unittest.main()``aa-turner2022-10-211-16/+0
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9152 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove arguments from ``package_unittest``aa-turner2022-10-211-57/+3
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9150 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Use ``importlib.import_module`` from the standard libraryaa-turner2022-10-211-9/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9149 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Avoid line break after binary operator.milde2022-03-051-9/+10
| | | | | | | | | Breaking before binary operators is the recommended style in PEP 8 (changed in April 2016). flake8 rule W504 git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9035 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Avoid too long lines.milde2022-03-051-1/+2
| | | | | | flake8 rule E501: line too long (N > 79 characters) git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9030 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Ensure 2 blank lines around top-level functions and classes.milde2022-03-041-0/+6
| | | | | | | | flake8 rules E302: expected 2 blank lines, found 1 E305: expected 2 blank lines after class or function definition git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9026 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix missing whitespace around operator.milde2022-03-031-1/+1
| | | | | | | | | | | | | | flake8 rules E225: missing whitespace around operator E226: missing whitespace around arithmetic operator E228: missing whitespace around modulo operator Keep ignoring the latter two rules: PEP8 limits the recommendation to "operators with lowest priority" "if operators with different priorities are used". flake8 also flags top level operators. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9017 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix code indentationmilde2022-01-291-2/+2
| | | | | | | | | | | | | | | | | | | | Check conformance to our coding policies with flake8. Fix the following problems: E111 indentation is not a multiple of four E114 indentation is not a multiple of four (comment) E115 expected an indented block (comment) E116 unexpected indentation (comment) E117 over-indented E121 continuation line under-indented for hanging indent E122 continuation line missing indentation or outdented E124 closing bracked does not match visual indentaion E127 continuation line over-indented for visual indent E128 continuation line under-indented for visual indent E131 continuation line unaligned for hanging indent git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove unused importsmilde2022-01-261-1/+0
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8979 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove 2.7-compatibility __future__ imports.milde2022-01-031-2/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8925 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Use 'isinstance(foo, bar)' instead of 'type(foo) is bar'milde2019-08-261-2/+2
| | | | | | | | This one is more stylistic than anything. Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8359 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Replace deprecated form of raising exceptionmilde2019-08-261-1/+1
| | | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8353 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Switch to 'except foo as bar' syntaxmilde2019-08-261-1/+1
| | | | | | | | This is the only form supported in Python 3.x. Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8347 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* py3: Switch to print functionsmilde2019-08-261-5/+6
| | | | | | | | | | Remove all uses of print as a statement. This includes comments, many of which are simply removed as noise (they're in version control and can be re-added later, if necessary). Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8346 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Cleanup: Use True/False for boolean valuesmilde2012-01-191-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7320 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply [ 2029251 ] return nonzero when tests fail.milde2009-09-031-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6116 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Prepare for python 3.0: minimize "types" module where possible (gbrandl).grubert2008-11-301-2/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5738 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* use $Id$ instead of $Date$ and $Revision$;wiemann2006-05-211-4/+2
| | | | | | | | collapsed Author and Contact fields; use canonical email addresses for David and Felix; (I have reviewed the diff) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@4564 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed usage bugwiemann2004-07-251-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2454 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Print a backtrace on failed import of test modules.cben2004-07-251-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2451 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Allow the test suite to survive unimportable test modules.cben2004-07-251-17/+21
| | | | | | | | | Notably, this fixes a crash on importing `moduleparser` under Python 2.1 from ``test/test_readers/test_python/test_functions.py``. (This shouldn't happen anyway, added to BUGS.txt) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2449 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* changed docstring field lists into commentsgoodger2002-10-091-6/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@778 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Portable fix.goodger2002-08-131-10/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@512 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Second version of the .. sectnum:: directive implementation. Also, theyole2002-08-111-2/+10
| | | | | | | really working fix of the empty path problem in package_unittest.py. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@500 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed lingering bugs; now alltests.py can be run from anywhere,goodger2002-08-101-1/+1
| | | | | | | and individual test cases can be run from their own directories. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@499 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Cleaned up importsgoodger2002-05-301-1/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@160 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* - Renamed from UnitTestFolder.py.goodger2002-04-251-0/+151
- Now supports true packages containing test modules (``__init__.py`` files required); fixes duplicate module name bug. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@44 929543f6-e4f2-0310-98a6-ba3bd3dd1d04