summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix testcases for singledispatch are sometimes failedTakeshi KOMIYA2020-11-042-23/+39
| | | | | | They are sometimes failed with python3.5 because the order of singledispatch functions is not stable on python 3.5. This uses comparision via "in" keyword to check the signature of singledispatch functions stably.
* Merge branch '3.2.x' into 3.xTakeshi KOMIYA2020-11-012-8/+8
|\
| * C, C++, improve warnings on duplicatesJakob Lykke Andersen2020-10-242-8/+8
| |
* | Merge pull request #8050 from keewis/preprocess-other-sectionsTakeshi KOMIYA2020-10-301-5/+83
|\ \ | | | | | | Preprocess other sections
| * | enable preprocessing in the testsKeewis2020-08-181-2/+3
| | |
| * | Merge branch '3.x' into preprocess-other-sectionsKeewis2020-08-187-41/+174
| |\ \
| * \ \ Merge branch '3.x' into preprocess-other-sectionsKeewis2020-08-073-49/+114
| |\ \ \
| * | | | make sure the roles are stripped from invalid names, tooKeewis2020-08-061-1/+19
| | | | |
| * | | | Merge branch '3.x' into preprocess-other-sectionsKeewis2020-08-041-2/+36
| |\ \ \ \
| * | | | | expect the normal raises and yields to be preprocessed, tooKeewis2020-08-041-4/+4
| | | | | |
| * | | | | move the GoogleDocstring test to the appropriate test classKeewis2020-08-041-16/+16
| | | | | |
| * | | | | move the return types and yield types tests to above the raises testKeewis2020-08-041-36/+45
| | | | | |
| * | | | | move the translations to a named variableKeewis2020-08-041-6/+5
| | | | | |
| * | | | | add test for the raises, yields and returns sectionsKeewis2020-08-041-1/+52
| | | | | |
* | | | | | Merge pull request #8051 from keewis/fix-see_alsoTakeshi KOMIYA2020-10-301-2/+31
|\ \ \ \ \ \ | | | | | | | | | | | | | | use the obj role for all See Also items
| * | | | | | always use :obj: instead of searching the inventoryKeewis2020-08-071-28/+3
| | | | | | |
| * | | | | | translate the functions before attempting to find a matching roleKeewis2020-08-061-0/+32
| | | | | | |
| * | | | | | fix the tests by falling back to a empty dict on AttributeErrorKeewis2020-08-041-0/+22
| |/ / / / /
* | | | | | Merge branch '3.x' into 7785_autodoc_typehints_none_for_overloadsTakeshi KOMIYA2020-10-282-0/+12
|\ \ \ \ \ \
| * | | | | | autodoc: Add test for single-string __slots__Matthias Geier2020-10-252-0/+12
| | | | | | |
* | | | | | | Fix #7785: autodoc_typehints=none does not effect to overloadsTakeshi KOMIYA2020-10-241-0/+48
|/ / / / / /
* | | | | | Merge pull request #8295 from tk0miya/refactor_rootTakeshi KOMIYA2020-10-243-4/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | refactor: Remove rst_epilog from test-root/conf.py
| * | | | | | refactor: Remove rst_epilog from test-root/conf.pyTakeshi KOMIYA2020-10-063-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I found test-root defines rst_epilog in its conf.py. It causes side-effects to many test cases in Sphinx's testing because test-root is widely used. This removes the configuration from test-root not to cause side-effects to our testings. Note: We already have test cases for rst_epilog in test_util_rst.
* | | | | | | Merge pull request #8303 from larsoner/tupleTakeshi KOMIYA2020-10-241-1/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | TST: Add test
| * | | | | | | TST: Add testEric Larson2020-10-071-1/+9
| |/ / / / / /
* | | | | | | Merge branch '3.x' into 3.2.x_to_3.xTakeshi KOMIYA2020-10-2426-37/+309
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | / | |_|_|_|_|/ |/| | | | |
| * | | | | Merge pull request #8283 from tk0miya/7786_overloads_in_other_fileTakeshi KOMIYA2020-10-062-0/+21
| |\ \ \ \ \ | | | | | | | | | | | | | | Fix #7786: autodoc: can't detect overloaded methods defined in other file
| | * | | | | Fix #7786: autodoc: can't detect overloaded methods defined in other fileTakeshi KOMIYA2020-10-052-0/+21
| | | | | | |
| * | | | | | Fix #8255: py domain: number in defarg is changed to decimalTakeshi KOMIYA2020-10-051-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Number literals in default argument value is converted to decimal form unexpectedly by AST module. This fixes the signature parsing code to recosntruct it correctly. Note: This is only available in Python 3.8+.
| * | | | | | pycode: ast.unparse() construct number literals using source codeTakeshi KOMIYA2020-10-051-5/+9
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Developers can write number literals in several ways. For example, decimal (1234), hexadecimal (0x1234), octal decimal (0o1234) and so on. But, AST module don't mind how the numbers written in the code. As a result, ast.unparse() could not reproduce the original form of number literals. This allows to construct number literals as possible using original source code. Note: This is only available in Python 3.8+.
| * | | | | Merge pull request #8273 from sphinx-doc/7996_man_make_section_directoryTakeshi KOMIYA2020-10-041-0/+7
| |\ \ \ \ \ | | | | | | | | | | | | | | Close #7996: manpage: Add man_make_section_directory
| | * | | | | Close #7996: manpage: Add man_make_section_directory7996_man_make_section_directoryTakeshi KOMIYA2020-10-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new config variable; man_make_section_directory to make a section directory on build man page. During 3.x, it defaults to False and will be changed to True on 4.0 release.
| * | | | | | Merge pull request #8120 from tk0miya/6640_allow_to_override_system_messageTakeshi KOMIYA2020-10-041-0/+29
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix #6640: i18n: Failed to override system message translation
| | * | | | | | Fix #6640: i18n: Failed to override system message translationTakeshi KOMIYA2020-10-041-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Our document describes that users can override system messages via their own message catalog named `sphinx.mo` under the locale_dirs. But it has not been used since its beginning of i18n mechanism because the priority of users' message catalog is lower than system's. This makes the priority of users' message catalog higher than system's.
| * | | | | | | Merge branch '3.x' into 7964_tuple_in_signatureTakeshi KOMIYA2020-10-0415-30/+150
| |\ \ \ \ \ \ \ | | |/ / / / / /
| | * | | | | | Fix #8157: autodoc: TypeError is raised when annotation has invalid __args__Takeshi KOMIYA2020-10-041-0/+8
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Typically, the __args__ attribute of type annotations is a tuple containing arguments for the types (ex. The __args__ of `List[int]` is `(int,)`). But some kind of types has non tuple __args__ attribute. For example, `nptyping.NDArray` is one of them. This fixes the TypeError when the invalid __args__ attribute found.
| | * | | | | Merge pull request #8272 from francoisfreitag/strip_whitespacesTakeshi KOMIYA2020-10-039-30/+30
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | Strip trailing whitespaces and normalize line endings
| | | * | | | | Strip trailing whitespaces and normalize line endingsFrançois Freitag2020-10-039-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Trailing whitespace do not have impact on the result, they are just unused bytes. Most text editors are configured to strip trailing whitespaces. Remove them all in one go. Update a handful of files to use the UNIX line ending.
| | * | | | | | Merge pull request #8269 from francoisfreitag/raise-anchorTakeshi KOMIYA2020-10-033-0/+39
| | |\ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | Fix #8268: make linkcheck report HTTP errors
| | | * | | | | Fix #8268: make linkcheck report HTTP errorsFrançois Freitag2020-10-033-0/+39
| | | | | | | |
| | * | | | | | Close #6518: autodoc: Add autodoc_type_aliasesTakeshi KOMIYA2020-10-032-0/+73
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | autodoc_type_aliases allows to keep user defined type alises not evaluated in the generated document.
| * | | | | | Fix #7964: autodoc: Tuple in default value is wrongly renderedTakeshi KOMIYA2020-10-031-1/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | This implements tuple literal support to sphinx.pycode.ast.unparse().
| * | | | | Merge pull request #8142 from jcarrano/typing-generic-signaturesTakeshi KOMIYA2020-10-032-0/+27
| |\ \ \ \ \ | | | | | | | | | | | | | | autodoc: fix constructor signatures for classes derived from typing.Generic
| | * | | | | autodoc: blacklist typing.Generic.__new__Juan Carrano2020-08-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When documenting classes derived from typing.Generic (essentially all classes in the typing module) the constructor signature would show an unhelpful (*args, **kwds). typing.Generic has a __new__ method which was picked up by sphinx. With this patch it is skipped and constructor signatures for generic classes are shown as they should.
| | * | | | | autodoc: Test the signature of typing.Generic subclasses.Juan Carrano2020-08-212-0/+28
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | This test is currently failing because typing.Generic.__new__ clobbers the real signature.
| * | | | | respond to review commentsRobert Cohn2020-10-011-2/+1
| | | | | |
| * | | | | add parallel to SphinxTestAppRobert Cohn2020-09-301-0/+6
| | | | | |
| * | | | | Merge branch '3.x' into 8190_autodoc-process-docstring-without_ending_blanklineTakeshi KOMIYA2020-09-213-1/+34
| |\ \ \ \ \
| | * \ \ \ \ Merge branch '3.x' into 8103_cached_propertyTakeshi KOMIYA2020-09-137-38/+115
| | |\ \ \ \ \
| | | * \ \ \ \ Merge branch '3.2.x' into 3.xTakeshi KOMIYA2020-09-131-1/+7
| | | |\ \ \ \ \ | | | | |/ / / / | | | |/| | | |