Skip to content

Commit 4bfb14b

Browse files
Fix sphinx expected output test (#155)
* Change the expected output of a test to match the current output. * Require Sphinx >= 3.2.0 for tests as one test relies on the expected Sphinx output which differs across versions.
1 parent e6b6119 commit 4bfb14b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ test =
3434
typing_extensions >= 3.5
3535
dataclasses; python_version == "3.6"
3636
sphobjinv >= 2.0
37+
Sphinx >= 3.2.0
3738
type_comments =
3839
typed_ast >= 1.4.0; python_version < "3.8"
3940

tests/test_sphinx_autodoc_typehints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class InnerClass
250250
251251
Inner class.
252252
253-
_InnerClass__dunder_inner_method(x)
253+
__dunder_inner_method(x)
254254
255255
Dunder inner method.
256256
@@ -270,7 +270,7 @@ class InnerClass
270270
Return type:
271271
"str"
272272
273-
_Class__dunder_method(x)
273+
__dunder_method(x)
274274
275275
Dunder method docstring.
276276

0 commit comments

Comments
 (0)