Skip to content

Commit 6ffec82

Browse files
committed
Minor bug fix
1 parent dc2611b commit 6ffec82

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_autodocsumm.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,8 @@ def in_between(full, sub, s0, *others):
2020

2121

2222
def get_html(app, fname):
23-
try:
24-
return (app.outdir / fname).read_text()
25-
except TypeError:
26-
with open(app.outdir + '/' + fname) as f:
27-
return f.read()
23+
with open(app.outdir + '/' + fname) as f:
24+
return f.read()
2825

2926

3027
class TestAutosummaryDocumenter(unittest.TestCase):

0 commit comments

Comments
 (0)