Skip to content

Commit 1e212bb

Browse files
committed
Website build
1 parent c2ab582 commit 1e212bb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

1_programs_in_files.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ <h2><span class="section-number">2.4. </span>Packages<a class="headerlink" href=
436436
<p>In order for the <a class="reference external" href="https://docs.python.org/3/reference/simple_stmts.html#import" title="(in Python v3.9)"><span class="xref std std-ref">import statement</span></a> to work, Python needs
437437
to know that the package being imported exists, and where to find it. This is
438438
achieved by <em>installing</em> the package. In order to make a package installable, we
439-
need to provide Python with a bit more information about the package. This
439+
need to provide Python with a bit more information about it. This
440440
information is contained in a Python module which must be called <code class="xref py py-obj docutils literal notranslate"><span class="pre">setup.py</span></code>.
441441
This file isn’t part of the package and does not go in the package folder.
442442
Instead, it should be placed in the top-level folder of your git repository, so
@@ -648,9 +648,9 @@ <h3><span class="section-number">2.7.1. </span>Pytest tests<a class="headerlink"
648648
</div>
649649
<div class="section" id="pytest-files">
650650
<h3><span class="section-number">2.7.2. </span>Pytest files<a class="headerlink" href="#pytest-files" title="Permalink to this headline"></a></h3>
651-
<p>Pytest looks for tests in files whose name starts with <code class="xref py py-obj docutils literal notranslate"><span class="pre">test_</span></code> and
652-
ends with <code class="xref py py-obj docutils literal notranslate"><span class="pre">py</span></code>. Continuing with our Fibonacci example, we might
653-
create a file called <code class="xref py py-obj docutils literal notranslate"><span class="pre">test_fibonacci.py</span></code> containing:</p>
651+
<p>Pytest looks for tests in files whose name starts with <code class="file docutils literal notranslate"><span class="pre">test_</span></code> and
652+
ends with <code class="file docutils literal notranslate"><span class="pre">.py</span></code>. Continuing with our Fibonacci example, we might
653+
create a file called <code class="file docutils literal notranslate"><span class="pre">test_fibonacci.py</span></code> containing:</p>
654654
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">fibonacci</span> <span class="kn">import</span> <span class="n">fib</span>
655655

656656
<span class="k">def</span> <span class="nf">test_fibonacci_values</span><span class="p">():</span>

_sources/1_programs_in_files.rst.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ Making packages installable
447447
In order for the :ref:`import statement <python:import>` to work, Python needs
448448
to know that the package being imported exists, and where to find it. This is
449449
achieved by *installing* the package. In order to make a package installable, we
450-
need to provide Python with a bit more information about the package. This
450+
need to provide Python with a bit more information about it. This
451451
information is contained in a Python module which must be called `setup.py`.
452452
This file isn't part of the package and does not go in the package folder.
453453
Instead, it should be placed in the top-level folder of your git repository, so
@@ -696,9 +696,9 @@ continues, but if it's false, then an error occurs. For example:
696696
Pytest files
697697
~~~~~~~~~~~~
698698

699-
Pytest looks for tests in files whose name starts with `test_` and
700-
ends with `.py`. Continuing with our Fibonacci example, we might
701-
create a file called `test_fibonacci.py` containing:
699+
Pytest looks for tests in files whose name starts with :file:`test_` and
700+
ends with :file:`.py`. Continuing with our Fibonacci example, we might
701+
create a file called :file:`test_fibonacci.py` containing:
702702

703703
.. code-block:: python3
704704

0 commit comments

Comments
 (0)