Skip to content

Commit

Permalink
Skipping doctest for python 3.13 in nox (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
artsiomkaltovich authored Dec 21, 2024
1 parent 500a88d commit e58c2e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import nox

nox.options.stop_on_first_error = True
Expand Down Expand Up @@ -27,12 +28,15 @@ def test(session):

@nox.session
def doctest(session):
if sys.version_info.major == 3 and sys.version_info.minor == 13:
print("Skipping doctest for python 3.13, see https://github.com/twmr/pytest-sphinx/issues/67")
return
session.install("-r", "requirements.txt")
session.install("-r", "requirements_doc.txt")
session.run("pytest", "doc", "--doctest-glob=*.rst", "--doctest-modules")


@nox.session
@nox.session(default=False)
def gendoc(session):
session.install("-r", "requirements.txt")
session.install("-r", "requirements_doc.txt")
Expand Down

0 comments on commit e58c2e1

Please sign in to comment.