Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Nov 9, 2018
1 parent 13475d3 commit d3231df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _doc/sphinxdoc/source/tutorial/sphinx.rst
Expand Up @@ -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*:

Expand Down
9 changes: 6 additions & 3 deletions _unittests/ut_sphinxext/test_downloadlink_extension.py
Expand Up @@ -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 = """
Expand All @@ -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 = """
Expand All @@ -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 = """
Expand Down

0 comments on commit d3231df

Please sign in to comment.