summaryrefslogtreecommitdiff
path: root/docutils/tools/test
Commit message (Collapse)AuthorAgeFilesLines
* Add encoding arguments when opening files.milde2022-06-151-1/+1
| | | | | | | | | | | | | Specify intended incoding, when possible. Avoids `EncodingWarning` in PEP 597 and nasty surprises if the default encoding is not what the user expects. Keep encoding unspecified where this may be an API change. Based on patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9072 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Ensure 2 blank lines around top-level functions and classes.milde2022-03-041-0/+3
| | | | | | | | 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 whitespace before/after delimiters and colon.milde2022-03-031-17/+17
| | | | | | | | | | | | | | Flake rules E201 whitespace after '(' E202 whitespace before '}' E203 whitespace before ':' E211 whitespace before '(' Exception: : as binary operator in extended slices (cf. https://www.python.org/dev/peps/pep-0008/#pet-peeves). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9015 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Use "x not in y" over "not x in y"milde2022-01-261-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8978 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove redundant parenthesesmilde2022-01-261-1/+1
| | | | | | Patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8976 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop special-casing for Python 2.x in tests and tools.milde2022-01-031-1/+1
| | | | | | | Use "python3" in the shebang line (cf. PEP 394 -- The "python" Command on Unix-Like Systems). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8927 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* test_buildhtml.py: Wait for the subprocess to finishmilde2020-03-031-0/+1
| | | | | | To fix ResourceWarning: subprocess NNN is still running. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8500 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* test_buildhtml: Eliminate need for shell=Truemilde2020-03-031-3/+4
| | | | | | | Also use sys.executable, to make it possible to test buildhtml.py with different interpreter versions. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8499 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* test_buildhtml: Drop obsolete NameError handlingmilde2020-03-031-11/+4
| | | | | | | | It was added in r7442 because the imports were optional, however since r8333 the imports are unconditional, so the NameError will never be raised. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8498 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* trivial: Misc whitespace fixesmilde2019-08-271-1/+1
| | | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8376 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove legacy ImportError exception handlers (patch by Stephen Finucane).milde2019-08-211-9/+2
| | | | | | See https://sourceforge.net/p/docutils/patches/150/ git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8333 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Allow running test_buildhtml.py from anywhere, also with Python 3.milde2012-09-031-19/+30
| | | | | | Fixes [ 3521167 ] and [ 3521168 ]. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7505 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Make tools/ compatible with both, Python 2 and 3 without 2to3-conversion.milde2012-06-131-7/+24
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7442 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix: --local now stops recursiongrubert2010-07-101-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6370 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add copyright headergrubert2010-07-101-0/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6369 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix: /usr/bin/env in first linegrubert2010-07-101-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6368 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* add test for build_html ignoring --localgrubert2010-07-101-0/+87
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6367 929543f6-e4f2-0310-98a6-ba3bd3dd1d04