You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 0_preface.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -236,7 +236,7 @@ <h2>Changes in the second and third editions<a class="headerlink" href="#changes
236
236
workspaces in <aclass="reference internal" href="2_programs_in_files.html#workspaces"><spanclass="std std-numref">Section 2.2.1</span></a>, and the Flake8 extension in
237
237
<aclass="reference internal" href="4_style.html#flake8-extension"><spanclass="std std-numref">Section 4.2.2</span></a>. Together, these provide correctly integrated code
238
238
linting. It also consistently uses <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">python</span><spanclass="pre">-m</span></code> to invoke tools such as <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">pip</span></code>,
239
-
<aclass="reference external" href="https://docs.pytest.org/en/latest/index.html#module-pytest" title="(in pytest v8.4.0.dev128)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">pytest</span></code></a> and <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">flake8</span></code>. This is less error-prone for students. The description
239
+
<aclass="reference external" href="https://docs.pytest.org/en/latest/index.html#module-pytest" title="(in pytest v8.4.0.dev200)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">pytest</span></code></a> and <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">flake8</span></code>. This is less error-prone for students. The description
240
240
of <aclass="reference external" href="https://docs.python.org/3/reference/compound_stmts.html#finally" title="(in Python v3.13)"><codeclass="xref std std-keyword docutils literal notranslate"><spanclass="pre">finally</span></code></a> in <aclass="reference internal" href="6_exceptions.html#else-finally"><spanclass="std std-numref">Section 6.5.2</span></a> has been also improved.</p>
<p>There are a number of Python packages which support code testing. The concepts
718
718
are largely similar so rather than get bogged down in the details of multiple
719
-
frameworks, we will introduce <aclass="reference external" href="https://docs.pytest.org/en/latest/index.html" title="(in pytest v8.4.0.dev128)"><spanclass="xref std std-doc">Pytest</span></a>, which is one of the
719
+
frameworks, we will introduce <aclass="reference external" href="https://docs.pytest.org/en/latest/index.html" title="(in pytest v8.4.0.dev200)"><spanclass="xref std std-doc">Pytest</span></a>, which is one of the
720
720
most widely used. Pytest is simply a Python package, so you can install it into
<spanclass="linenos"> 7</span><spanclass="w"></span><spanclass="sd">"""Ensure that value is an allowed element value in this group."""</span>
<spanclass="linenos">10</span><spanclass="k">raise</span><spanclass="ne">ValueError</span><spanclass="p">(</span><spanclass="s2">"Element value must be a "</span>
340
-
<spanclass="linenos">11</span><spanclass="sa">f</span><spanclass="s2">"</span><spanclass="si">{</span><spanclass="bp">self</span><spanclass="o">.</span><spanclass="n">degree</span><spanclass="si">}</span><spanclass="s2"> x </span><spanclass="si">{</span><spanclass="bp">self</span><spanclass="o">.</span><spanclass="n">degree</span><spanclass="si">}</span><spanclass="s2">"</span>
<spanclass="linenos">11</span><spanclass="sa">f</span><spanclass="s2">"</span><spanclass="si">{</span><spanclass="bp">self</span><spanclass="o">.</span><spanclass="n">n</span><spanclass="si">}</span><spanclass="s2"> x </span><spanclass="si">{</span><spanclass="bp">self</span><spanclass="o">.</span><spanclass="n">n</span><spanclass="si">}</span><spanclass="s2">"</span>
0 commit comments