summaryrefslogtreecommitdiff
path: root/sphinx/testing
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch '3.x'Takeshi KOMIYA2020-07-111-0/+11
|\ \ | |/
| * fix lintYuxin Wu2020-07-051-3/+1
| |
| * show docs for decorated special functionsYuxin Wu2020-07-051-0/+13
| |
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-292-15/+2
| |
* | Merge branch '3.x'Takeshi KOMIYA2020-03-231-1/+1
|\ \ | |/
| * Close #7341: py domain: type annotations are converted to cross refsTakeshi KOMIYA2020-03-221-1/+1
| |
* | Use typing.NamedTuple instead of collections.namedtuple as possibleTakeshi KOMIYA2020-03-071-1/+0
|/
* Fix comparerTakeshi KOMIYA2020-02-231-1/+1
|
* refactor: Update type annotations in sphinx.testing.*Takeshi KOMIYA2020-02-233-46/+55
|
* testing: Add Path.read_text() and Path.read_bytes()Takeshi KOMIYA2020-02-011-0/+19
| | | | | To migrate pathlib.Path in future, compatibile methods are needed for our Path class.
* refactor: Rename var keyword argument to "**kwargs"Takeshi KOMIYA2020-01-081-4/+4
|
* A happy new year!Takeshi KOMIYA2020-01-016-6/+6
|
* mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-302-7/+7
|
* Merge branch '2.2.1' into 2.0Takeshi KOMIYA2019-10-061-4/+4
|\
| * Fix mypy violations (for mypy-0.730)Takeshi KOMIYA2019-10-061-4/+4
| |
* | refactor: SphinxStandaloneReader should not hold an application objectTakeshi KOMIYA2019-08-201-1/+3
|/
* Merge branch '2.1.3' into 2.0Takeshi KOMIYA2019-07-131-4/+4
|\
| * Fix mypy violations (for mypy-0.720)Takeshi KOMIYA2019-07-131-4/+4
| |
* | Migrate to py3 style type annotation: sphinx.testing.restructuredtextTakeshi KOMIYA2019-07-061-8/+3
| |
* | Migrate to py3 style type annotation: sphinx.testing.fixturesTakeshi KOMIYA2019-07-061-9/+4
| |
* | Migrate to py3 style type annotation: sphinx.testing.pathTakeshi KOMIYA2019-07-061-55/+28
| |
* | Migrate to py3 style type annotation: sphinx.testing.utilTakeshi KOMIYA2019-07-061-36/+18
|/
* Python-3-only clean ups discovered by pyupgradeJon Dufresne2019-03-171-2/+2
| | | | | | | | | | | | | | https://github.com/asottile/pyupgrade > A tool to automatically upgrade syntax for newer versions of the > language. - Drop u str prefix - Drop base object inheritance - Drop args to super() - Use set literals - Use dict comprehension - Use set comprehension
* Merge branch '2.0' into 2155_code_directiveTakeshi KOMIYA2019-03-101-1/+0
|\
| * Clean up import for annotationsTakeshi KOMIYA2019-03-061-1/+0
| |
* | Add sphinx.testing.restructuredtext.parse()Takeshi KOMIYA2019-03-031-0/+38
|/
* Stop to use $SPHINX_TEST_TEMPDIR envvarTakeshi KOMIYA2019-01-131-3/+6
| | | | | | | | At once, we added $SPHINX_TEST_TEMPDIR to keep intermediate files of testing to investigate the failures. At present, we've used pytest as a test runner. And it keeps temporary directories of last 3 testings. So this starts to use it instead of $SPHINX_TEST_TEMPDIR. https://docs.pytest.org/en/latest/tmpdir.html#the-default-base-temporary-directory
* Use subprocess.run() instead of Popen()Takeshi KOMIYA2019-01-131-4/+2
| | | | | | Since python3.5, subprocess.run() has been introduced. It works a wrapper of Popen, and it looks much simple and better. This uses it instead of Popen to make our code simple.
* Add PathComparer for testing and fix 2 test failure on Windows. (#5943)Takayuki SHIMIZUKAWA2019-01-131-0/+101
| | | | | | | | | commits are squashed. * Add PathComparer for testing and fix 2 test failure on Windows. * fix flake8 * add type information by f2f review. Thanks to @tk0miya! * fix mypy, flake8 again..
* Remove use of deprecated APIsTakeshi KOMIYA2019-01-031-1/+1
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-024-4/+4
|\
| * A happy new year!Takeshi KOMIYA2019-01-024-4/+4
| |
* | Replace use of six.text_type with strJon Dufresne2018-12-181-4/+2
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-164-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | Merge pull request #5796 from jdufresne/superTakeshi KOMIYA2018-12-161-3/+3
|\ \ | | | | | | Use Python 3 super() argument-less syntax
| * | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-3/+3
| | | | | | | | | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
* | | Remove unnecessary bytes type check from path.write_text()Jon Dufresne2018-12-151-2/+0
|/ / | | | | | | | | All code passes type str to the method. Per the type signature, only str is allowed.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-152-18/+16
| |
* | Remove print_function featureTakeshi KOMIYA2018-12-151-1/+0
| |
* | refactor: Replace six.StringIO by io.StringIOTakeshi KOMIYA2018-12-151-1/+1
| |
* | Add docutils-stubs to test depsTakeshi KOMIYA2018-12-151-4/+4
| |
* | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-152-4/+4
| |
* | Simplify open() call by removing default modeJon Dufresne2018-12-111-1/+1
| | | | | | | | | | | | | | | | | | The open() function opens files in read-only text mode by default. Drop the mode argument to be slightly simpler and more idiomatic. https://docs.python.org/3/library/functions.html#open > The default mode is 'r' (open for reading text, synonym of 'rt').
* | Fix annotations of testingTakeshi KOMIYA2018-12-031-4/+13
| |
* | Fix annotations (minor fixes)Takeshi KOMIYA2018-12-031-1/+2
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-242-0/+2
| |
* | Replace six.string_types with native strJon Dufresne2018-11-212-5/+3
| |
* | Simplify ensuredir() with Python3 stdlib featuresJon Dufresne2018-11-202-7/+5
| | | | | | | | | | | | | | | | | | - Simplify ensuredir() to equivalent os.makedir(name, exist_ok=True) - Do not check if a directory exists before calling ensuredir() (ensuredir() already handles it) - Add exist_ok argument to path.makedirs() to follow same pattern - Drop unnecessary .exists() check immediately before .isdir() - Add tests for ensuredir
* | Merge pull request #5623 from jdufresne/commentsTakeshi KOMIYA2018-11-131-4/+0
|\ \ | | | | | | Remove commented out dead code in sphinx/testing/util.py
| * | Remove commented out dead code in sphinx/testing/util.pyJon Dufresne2018-11-121-4/+0
| | | | | | | | | | | | Commented since d47a7587f9813f2366e2077be051116291bf930e (Sep 21, 2014).