1From 3297b27177ab4862d1b2408a2db66235397fe212 Mon Sep 17 00:00:00 2001
2From: Takeshi KOMIYA <i.tkomiya@gmail.com>
3Date: Sat, 17 Jul 2021 19:25:37 +0900
4Subject: [PATCH 1/2] Fix #9361: RemovedInSphinx50Warning on testing
5
6---
7 tests/test_jsmath.py | 6 +++---
8 1 file changed, 3 insertions(+), 3 deletions(-)
9
10diff --git a/tests/test_jsmath.py b/tests/test_jsmath.py
11index 573d262..eea8a95 100644
12--- a/tests/test_jsmath.py
13+++ b/tests/test_jsmath.py
14@@ -14,7 +14,7 @@
15 @pytest.mark.sphinx('html', testroot='basic')
16 def test_basic(app, status, warning):
17     app.builder.build_all()
18-    content = (app.outdir / 'math.html').text()
19+    content = (app.outdir / 'math.html').read_text()
20     print(content)
21     assert '<div class="math notranslate nohighlight">\nE = mc^2</div>' in content
22     assert ('<span class="eqno">(1)<a class="headerlink" href="#equation-pythagorean" '
23@@ -34,7 +34,7 @@ def test_basic(app, status, warning):
24 def test_numfig_enabled(app, status, warning):
25     app.builder.build_all()
26 
27-    content = (app.outdir / 'math.html').text()
28+    content = (app.outdir / 'math.html').read_text()
29     assert '<div class="math notranslate nohighlight">\nE = mc^2</div>' in content
30     assert ('<span class="eqno">(1.1)<a class="headerlink" href="#equation-pythagorean" '
31             'title="Permalink to this equation">��</a></span>'
32@@ -52,5 +52,5 @@ def test_numfig_enabled(app, status, warning):
33 def test_disabled_when_equations_not_found(app, status, warning):
34     app.builder.build_all()
35 
36-    content = (app.outdir / 'index.html').text()
37+    content = (app.outdir / 'index.html').read_text()
38     assert 'jsmath.js' not in content
39
40