Skip to content
Permalink
Browse files

fix type issue

  • Loading branch information...
sdpython committed Nov 9, 2018
1 parent 13475d3 commit d3231dfe7f30d53a354e1a97358153fb428777c4
@@ -232,7 +232,7 @@ It looks into the page and adds a link to each local sections.
*runpython*: execute a script
+++++++++++++++++++++++++++++

Location: :class:`RunPythonDirective <pyquickhelper.sphinxext.sphinxext_runpython_extension.RunPythonDirective>`.
Location: :py:class:`RunPythonDirective <pyquickhelper.sphinxext.sphinxext_runpython_extension.RunPythonDirective>`.

In *conf.py*:

@@ -43,7 +43,8 @@ def get_name(self):
dest = os.path.join(this, name)
return dest.replace("\\", "/")

@unittest.skipIf(StrictVersion(sphinx.__version__) < StrictVersion(1.8))
@unittest.skipIf(StrictVersion(sphinx.__version__) < StrictVersion('1.8'),
reason="DownloadFiles not available in 1.7")
def test_downloadlink_rst(self):
name = self.get_name()
content = """
@@ -65,7 +66,8 @@ def test_downloadlink_rst(self):
with open(os.path.join(temp, "out.rst"), "w", encoding="utf8") as f:
f.write(out)

@unittest.skipIf(StrictVersion(sphinx.__version__) < StrictVersion(1.8))
@unittest.skipIf(StrictVersion(sphinx.__version__) < StrictVersion("1.8"),
reason="DownloadFiles not available in 1.7")
def test_downloadlink_md(self):
name = self.get_name()
content = """
@@ -82,7 +84,8 @@ def test_downloadlink_md(self):
with open(os.path.join(temp, "out.rst"), "w", encoding="utf8") as f:
f.write(out)

@unittest.skipIf(StrictVersion(sphinx.__version__) < StrictVersion(1.8))
@unittest.skipIf(StrictVersion(sphinx.__version__) < StrictVersion("1.8"),
reason="DownloadFiles not available in 1.7")
def test_downloadlink_html(self):
name = self.get_name()
content = """

0 comments on commit d3231df

Please sign in to comment.
You can’t perform that action at this time.