Skip to content
Snippets Groups Projects
Commit c83211b4 authored by Gerardo Tauriello's avatar Gerardo Tauriello
Browse files

Fixed randomly failing doctest

parent ebfe155b
No related branches found
No related tags found
No related merge requests found
...@@ -265,6 +265,8 @@ To get the test for exit code ``0`` talking to you, just do ...@@ -265,6 +265,8 @@ To get the test for exit code ``0`` talking to you, just do
.. testcode:: actiontest .. testcode:: actiontest
:hide: :hide:
# hack needed to see output
ost.PushVerbosityLevel(2)
import unittest import unittest
class DoAwesomeActionTests(test_actions.ActionTestCase): class DoAwesomeActionTests(test_actions.ActionTestCase):
......
...@@ -299,8 +299,10 @@ rst_epilog = """ ...@@ -299,8 +299,10 @@ rst_epilog = """
# increase default timeout (5s) for linkcheck # increase default timeout (5s) for linkcheck
linkcheck_timeout = 15.0 linkcheck_timeout = 15.0
# in some versions of sphinx, doctest invokes doctest_path AFTER executing code # global setup for doctests (will be executed before any testcode block)
doctest_global_setup = """ doctest_global_setup = """
# in some versions of sphinx, doctest invokes doctest_path AFTER executing code
# hence we set paths here...
import sys import sys
sys.path.insert(0, '@LIB_STAGE_PATH@/@PYTHON_MODULE_PATH@') sys.path.insert(0, '@LIB_STAGE_PATH@/@PYTHON_MODULE_PATH@')
sys.path.insert(1, '@OST_PYMOD_PATH@') sys.path.insert(1, '@OST_PYMOD_PATH@')
...@@ -322,6 +324,7 @@ class DocTestLogger(ost.LogSink): ...@@ -322,6 +324,7 @@ class DocTestLogger(ost.LogSink):
doctest_logger = DocTestLogger() doctest_logger = DocTestLogger()
ost.PushLogSink(doctest_logger) ost.PushLogSink(doctest_logger)
ost.PushVerbosityLevel(0)
""" """
# LocalWords: cmake # LocalWords: cmake
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment