This file is indexed.

/usr/share/doc/python-pytest-doc/html/announce/release-2.0.0.html is in python-pytest-doc 2.6.3-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++</title>
    
    <link rel="stylesheet" href="../_static/flasky.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '2.6.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="shortcut icon" href="../_static/pytest1favi.ico"/>
    <link rel="top" title="None" href="../index.html" />
    <link rel="up" title="Release announcements" href="index.html" />
    <link rel="next" title="Changelog history" href="../changelog.html" />
    <link rel="prev" title="py.test 2.0.1: bug fixes" href="release-2.0.1.html" />
   
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">

  </head>
  <body>
  
  

    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../changelog.html" title="Changelog history"
             accesskey="N">next</a></li>
        <li class="right" >
          <a href="release-2.0.1.html" title="py.test 2.0.1: bug fixes"
             accesskey="P">previous</a> |</li>
        <li><a href="../contents.html">pytest-2.6.2</a> &raquo;</li>
          <li><a href="index.html" accesskey="U">Release announcements</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="py-test-2-0-0-asserts-unittest-reporting-config-docs">
<h1>py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++<a class="headerlink" href="#py-test-2-0-0-asserts-unittest-reporting-config-docs" title="Permalink to this headline"></a></h1>
<p>Welcome to pytest-2.0.0, a major new release of &#8220;py.test&#8221;, the rapid
easy Python testing tool.  There are many new features and enhancements,
see below for summary and detailed lists.  A lot of long-deprecated code
has been removed, resulting in a much smaller and cleaner
implementation.  See the new docs with examples here:</p>
<blockquote>
<div><a class="reference external" href="http://pytest.org/2.0.0/index.html">http://pytest.org/2.0.0/index.html</a></div></blockquote>
<p>A note on packaging: pytest used to part of the &#8220;py&#8221; distribution up
until version py-1.3.4 but this has changed now:  pytest-2.0.0 only
contains py.test related code and is expected to be backward-compatible
to existing test code. If you want to install pytest, just type one of:</p>
<div class="highlight-python"><div class="highlight"><pre>pip install -U pytest
easy_install -U pytest
</pre></div>
</div>
<p>Many thanks to all issue reporters and people asking questions or
complaining.  Particular thanks to Floris Bruynooghe and Ronny Pfannschmidt
for their great coding contributions and many others for feedback and help.</p>
<p>best,
holger krekel</p>
<div class="section" id="new-features">
<h2>New Features<a class="headerlink" href="#new-features" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">new invocations through Python interpreter and from Python:</p>
<div class="highlight-python"><div class="highlight"><pre>python -m pytest      # on all pythons &gt;= 2.5
</pre></div>
</div>
<p>or from a python program:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">import</span> <span class="nn">pytest</span> <span class="p">;</span> <span class="n">pytest</span><span class="o">.</span><span class="n">main</span><span class="p">(</span><span class="n">arglist</span><span class="p">,</span> <span class="n">pluginlist</span><span class="p">)</span>
</pre></div>
</div>
<p>see <a class="reference external" href="http://pytest.org/2.0.0/usage.html">http://pytest.org/2.0.0/usage.html</a> for details.</p>
</li>
<li><p class="first">new and better reporting information in assert expressions
if comparing lists, sequences or strings.</p>
<p>see <a class="reference external" href="http://pytest.org/2.0.0/assert.html#newreport">http://pytest.org/2.0.0/assert.html#newreport</a></p>
</li>
<li><p class="first">new configuration through ini-files (setup.cfg or tox.ini recognized),
for example:</p>
<div class="highlight-python"><div class="highlight"><pre>[pytest]
norecursedirs = .hg data*  # don&#39;t ever recurse in such dirs
addopts = -x --pyargs      # add these command line options by default
</pre></div>
</div>
<p>see <a class="reference external" href="http://pytest.org/2.0.0/customize.html">http://pytest.org/2.0.0/customize.html</a></p>
</li>
<li><p class="first">improved standard unittest support.  In general py.test should now
better be able to run custom unittest.TestCases like twisted trial
or Django based TestCases.  Also you can now run the tests of an
installed &#8216;unittest&#8217; package with py.test:</p>
<div class="highlight-python"><div class="highlight"><pre>py.test --pyargs unittest
</pre></div>
</div>
</li>
<li><p class="first">new &#8220;-q&#8221; option which decreases verbosity and prints a more
nose/unittest-style &#8220;dot&#8221; output.</p>
</li>
<li><p class="first">many many more detailed improvements details</p>
</li>
</ul>
</div>
<div class="section" id="fixes">
<h2>Fixes<a class="headerlink" href="#fixes" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>fix issue126 - introduce py.test.set_trace() to trace execution via
PDB during the running of tests even if capturing is ongoing.</li>
<li>fix issue124 - make reporting more resilient against tests opening
files on filedescriptor 1 (stdout).</li>
<li>fix issue109 - sibling conftest.py files will not be loaded.
(and Directory collectors cannot be customized anymore from a Directory&#8217;s
conftest.py - this needs to happen at least one level up).</li>
<li>fix issue88 (finding custom test nodes from command line arg)</li>
<li>fix issue93 stdout/stderr is captured while importing conftest.py</li>
<li>fix bug: unittest collected functions now also can have &#8220;pytestmark&#8221;
applied at class/module level</li>
</ul>
</div>
<div class="section" id="important-notes">
<h2>Important Notes<a class="headerlink" href="#important-notes" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>The usual way in pre-2.0 times to use py.test in python code was
to import &#8220;py&#8221; and then e.g. use &#8220;py.test.raises&#8221; for the helper.
This remains valid and is not planned to be deprecated.  However,
in most examples and internal code you&#8217;ll find &#8220;import pytest&#8221;
and &#8220;pytest.raises&#8221; used as the recommended default way.</li>
<li>pytest now first performs collection of the complete test suite
before running any test. This changes for example the semantics of when
pytest_collectstart/pytest_collectreport are called.  Some plugins may
need upgrading.</li>
<li>The pytest package consists of a 400 LOC core.py and about 20 builtin plugins,
summing up to roughly 5000 LOCs, including docstrings. To be fair, it also
uses generic code from the &#8220;pylib&#8221;, and the new &#8220;py&#8221; package to help
with filesystem and introspection/code manipulation.</li>
</ul>
</div>
<div class="section" id="incompatible-removals">
<h2>(Incompatible) Removals<a class="headerlink" href="#incompatible-removals" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">py.test.config is now only available if you are in a test run.</p>
</li>
<li><p class="first">the following (mostly already deprecated) functionality was removed:</p>
<ul class="simple">
<li>removed support for Module/Class/... collection node definitions
in conftest.py files.  They will cause nothing special.</li>
<li>removed support for calling the pre-1.0 collection API of &#8220;run()&#8221; and &#8220;join&#8221;</li>
<li>removed reading option values from conftest.py files or env variables.
This can now be done much much better and easier through the ini-file
mechanism and the &#8220;addopts&#8221; entry in particular.</li>
<li>removed the &#8220;disabled&#8221; attribute in test classes.  Use the skipping
and pytestmark mechanism to skip or xfail a test class.</li>
</ul>
</li>
<li><p class="first">py.test.collect.Directory does not exist anymore and it
is not possible to provide an own &#8220;Directory&#8221; object.
If you have used this and don&#8217;t know what to do, get
in contact.  We&#8217;ll figure something out.</p>
<p>Note that pytest_collect_directory() is still called but
any return value will be ignored.  This allows to keep
old code working that performed for example &#8220;py.test.skip()&#8221;
in collect() to prevent recursion into directory trees
if a certain dependency or command line option is missing.</p>
</li>
</ul>
<p>see <a class="reference internal" href="../changelog.html#changelog"><em>Changelog history</em></a> for more detailed changes.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../contents.html">
              <img class="logo" src="../_static/pytest1.png" alt="Logo"/>
            </a></p><h3><a href="../contents.html">Table Of Contents</a></h3>

<ul>
  <li><a href="../index.html">Home</a></li>
  <li><a href="../contents.html">Contents</a></li>
  <li><a href="../getting-started.html">Install</a></li>
  <li><a href="../example/index.html">Examples</a></li>
  <li><a href="../customize.html">Customize</a></li>
  <li><a href="../contact.html">Contact</a></li>
  <li><a href="../talks.html">Talks/Posts</a></li>
  <li><a href="../changelog.html">Changelog</a></li>
</ul>
  <hr>
  <ul>
<li><a class="reference internal" href="#">py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++</a><ul>
<li><a class="reference internal" href="#new-features">New Features</a></li>
<li><a class="reference internal" href="#fixes">Fixes</a></li>
<li><a class="reference internal" href="#important-notes">Important Notes</a></li>
<li><a class="reference internal" href="#incompatible-removals">(Incompatible) Removals</a></li>
</ul>
</li>
</ul>
<h3>Related Topics</h3>
<ul>
  <li><a href="../contents.html">Documentation overview</a><ul>
  <li><a href="index.html">Release announcements</a><ul>
      <li>Previous: <a href="release-2.0.1.html" title="previous chapter">py.test 2.0.1: bug fixes</a></li>
      <li>Next: <a href="../changelog.html" title="next chapter">Changelog history</a></li>
  </ul></li>
  </ul></li>
</ul><h3>Useful Links</h3>
<ul>
  <li><a href="../index.html">The pytest Website</a></li>
  <li><a href="../contributing.html">Contribution Guide</a></li>
  <li><a href="https://pypi.python.org/pypi/pytest">pytest @ PyPI</a></li>
  <li><a href="https://bitbucket.org/hpk42/pytest/">pytest @ Bitbucket</a></li>
  <li><a href="http://pytest.org/latest/plugins_index/index.html">3rd party plugins</a></li>
  <li><a href="https://bitbucket.org/hpk42/pytest/issues?status=new&status=open">Issue Tracker</a></li>
  <li><a href="http://pytest.org/latest/pytest.pdf">PDF Documentation</a>
</ul>

<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>

  <div class="footer">
    &copy; Copyright 2014, holger krekel.
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
  </div>
  

  </body>
</html>