summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-06-05 06:49:15 +0200
committerMichał Górny <mgorny@gentoo.org>2024-06-05 06:49:15 +0200
commit1576a02547fadcc163bae25206dd7c8c4a12ec88 (patch)
tree833b72ac99497e6942b26938adba6d1f7304b3bc /guide/pytest.html
parentUpdate feed lists (diff)
downloadpython-1576a02547fadcc163bae25206dd7c8c4a12ec88.tar.gz
python-1576a02547fadcc163bae25206dd7c8c4a12ec88.tar.bz2
python-1576a02547fadcc163bae25206dd7c8c4a12ec88.zip
Update Guide to 4a44458
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'guide/pytest.html')
-rw-r--r--guide/pytest.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/guide/pytest.html b/guide/pytest.html
index 6f5f99e..c56c234 100644
--- a/guide/pytest.html
+++ b/guide/pytest.html
@@ -222,7 +222,7 @@ and blocking arch testing machines.</p>
in seconds, prior to calling <code class="docutils literal notranslate"><span class="pre">distutils_enable_tests</span></code>. This ensures
that an appropriate depedency is added, and that <code class="docutils literal notranslate"><span class="pre">epytest</span></code> adds
necessary command-line options.</p>
-<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nv">EPYTEST_TIMEOUT</span><span class="o">=</span><span class="m">1800</span>
+<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>:<span class="w"> </span><span class="si">${</span><span class="nv">EPYTEST_TIMEOUT</span><span class="p">:=1800</span><span class="si">}</span>
distutils_enable_tests<span class="w"> </span>pytest
</pre></div>
</div>
@@ -232,6 +232,9 @@ tests hang, the total run time will multiply consequently.</p>
<p>When deciding on a timeout value, please take into the consideration
that the tests may be run on a low performance hardware, and on a busy
system, and choose an appropriately high value.</p>
+<p>It is a good idea to use the default assignment form, as in the snippet
+above, as that permits the user to easily override the timeout
+if necessary.</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p><code class="docutils literal notranslate"><span class="pre">EPYTEST_TIMEOUT</span></code> can also be set by user in <code class="docutils literal notranslate"><span class="pre">make.conf</span></code>