Skip to content

Commit a1a7074

Browse files
committed
TST: modify how MockApp sets builder app.
1 parent 1472c6f commit a1a7074

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

numpydoc/tests/test_numpydoc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ class MockApp():
3131
builder = MockBuilder()
3232
translator = None
3333

34-
35-
app = MockApp()
36-
app.builder.app = app
34+
def __init__(self):
35+
self.builder.app = self
3736

3837

3938
def test_mangle_docstrings():

0 commit comments

Comments
 (0)