Skip to content

Commit 36d01c9

Browse files
authored
Update the tests for Sphinx 8.1 (#200)
Fixes #199.
1 parent 85913d9 commit 36d01c9

14 files changed

+30
-0
lines changed

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ def read(app, buildername="html", filename="index.html", encoding="utf-8"):
9191
for div in soup.find_all("div", {"class": "highlight"}):
9292
div.decompose()
9393

94+
if sphinx.version_info < (8, 1):
95+
body = soup.select("div.body")[0]
96+
body.append(soup.new_tag("div", **{"class": "clearer"}))
97+
9498
doc_div = soup.findAll("div", {"class": "documentwrapper"})[0]
9599
doc = doc_div.prettify()
96100

tests/test_build/test_basic.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
</p>
3838
</div>
3939
</div>
40+
<div class="clearer">
41+
</div>
4042
</div>
4143
</div>
4244
</div>

tests/test_build/test_conditional_assets_html_assets_policy_index_.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ <h1>
243243
</div>
244244
</div>
245245
</section>
246+
<div class="clearer">
247+
</div>
246248
</div>
247249
</div>
248250
</div>

tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ <h1>
243243
</div>
244244
</div>
245245
</section>
246+
<div class="clearer">
247+
</div>
246248
</div>
247249
</div>
248250
</div>

tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ <h1>
243243
</div>
244244
</div>
245245
</section>
246+
<div class="clearer">
247+
</div>
246248
</div>
247249
</div>
248250
</div>

tests/test_build/test_conditional_assets_index_.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ <h1>
243243
</div>
244244
</div>
245245
</section>
246+
<div class="clearer">
247+
</div>
246248
</div>
247249
</div>
248250
</div>

tests/test_build/test_conditional_assets_no_tabs1_.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ <h1>
243243
</div>
244244
</div>
245245
</section>
246+
<div class="clearer">
247+
</div>
246248
</div>
247249
</div>
248250
</div>

tests/test_build/test_conditional_assets_no_tabs2_.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ <h1>
243243
</div>
244244
</div>
245245
</section>
246+
<div class="clearer">
247+
</div>
246248
</div>
247249
</div>
248250
</div>

tests/test_build/test_custom_lexer.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
</div>
2020
</div>
2121
</div>
22+
<div class="clearer">
23+
</div>
2224
</div>
2325
</div>
2426
</div>

tests/test_build/test_disable_closing.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
</p>
3838
</div>
3939
</div>
40+
<div class="clearer">
41+
</div>
4042
</div>
4143
</div>
4244
</div>

0 commit comments

Comments
 (0)