Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 7f671eb35339cf812de52087b0d93519 > files > 236

python3-pytest-2.3.5-3.fc18.noarch.rpm



<!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>Changelog history</title>
    
    <link rel="stylesheet" href="_static/sphinxdoc.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.3.4.1',
        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="top" title="None" href="index.html" />
    <link rel="prev" title="py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++" href="announce/release-2.0.0.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="announce/release-2.0.0.html" title="py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++"
             accesskey="P">previous</a></li>
        <li><a href="contents.html">pytest-2.3.4.1</a> &raquo;</li>
 
<g:plusone></g:plusone>

      </ul>
    </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
<div id="searchbox" style="display: none">
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="Search" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>

<h3>quicklinks</h3>
<div style="text-align: left; font-size: 100%; vertical-align: middle;">
<table>
<tr>
<td>
        <a href="index.html">home</a>
</td><td>
        <a href="contents.html">TOC/contents</a>
</td></tr><tr><td>
        <a href="getting-started.html">install</a>
</td><td>
        <a href="#">changelog</a>
</td></tr><tr><td>
        <a href="example/index.html">examples</a>
</td><td>
        <a href="customize.html">customize</a>
</td></tr><tr><td>
        <a href="https://bitbucket.org/hpk42/pytest/issues?status=new&status=open">issues[bb]</a>
</td><td>
        <a href="contact.html">contact</a>
</td></tr></table>
</div>

  <h3><a href="contents.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Changelog history</a><ul>
<li><a class="reference internal" href="#changes-between-2-3-4-and-2-3-5dev">Changes between 2.3.4 and 2.3.5dev</a></li>
<li><a class="reference internal" href="#changes-between-2-3-3-and-2-3-4">Changes between 2.3.3 and 2.3.4</a></li>
<li><a class="reference internal" href="#changes-between-2-3-2-and-2-3-3">Changes between 2.3.2 and 2.3.3</a></li>
<li><a class="reference internal" href="#changes-between-2-3-1-and-2-3-2">Changes between 2.3.1 and 2.3.2</a></li>
<li><a class="reference internal" href="#changes-between-2-3-0-and-2-3-1">Changes between 2.3.0 and 2.3.1</a></li>
<li><a class="reference internal" href="#changes-between-2-2-4-and-2-3-0">Changes between 2.2.4 and 2.3.0</a></li>
<li><a class="reference internal" href="#changes-between-2-2-3-and-2-2-4">Changes between 2.2.3 and 2.2.4</a></li>
<li><a class="reference internal" href="#changes-between-2-2-2-and-2-2-3">Changes between 2.2.2 and 2.2.3</a></li>
<li><a class="reference internal" href="#changes-between-2-2-1-and-2-2-2">Changes between 2.2.1 and 2.2.2</a></li>
<li><a class="reference internal" href="#changes-between-2-2-0-and-2-2-1">Changes between 2.2.0 and 2.2.1</a></li>
<li><a class="reference internal" href="#changes-between-2-1-3-and-2-2-0">Changes between 2.1.3 and 2.2.0</a></li>
<li><a class="reference internal" href="#changes-between-2-1-2-and-2-1-3">Changes between 2.1.2 and 2.1.3</a></li>
<li><a class="reference internal" href="#changes-between-2-1-1-and-2-1-2">Changes between 2.1.1 and 2.1.2</a></li>
<li><a class="reference internal" href="#changes-between-2-1-0-and-2-1-1">Changes between 2.1.0 and 2.1.1</a></li>
<li><a class="reference internal" href="#changes-between-2-0-3-and-2-1-0-dev">Changes between 2.0.3 and 2.1.0.DEV</a></li>
<li><a class="reference internal" href="#changes-between-2-0-2-and-2-0-3">Changes between 2.0.2 and 2.0.3</a></li>
<li><a class="reference internal" href="#changes-between-2-0-1-and-2-0-2">Changes between 2.0.1 and 2.0.2</a></li>
<li><a class="reference internal" href="#changes-between-2-0-0-and-2-0-1">Changes between 2.0.0 and 2.0.1</a></li>
<li><a class="reference internal" href="#changes-between-1-3-4-and-2-0-0">Changes between 1.3.4 and 2.0.0</a></li>
<li><a class="reference internal" href="#changes-between-1-3-3-and-1-3-4">Changes between 1.3.3 and 1.3.4</a></li>
<li><a class="reference internal" href="#changes-between-1-3-2-and-1-3-3">Changes between 1.3.2 and 1.3.3</a></li>
<li><a class="reference internal" href="#changes-between-1-3-1-and-1-3-2">Changes between 1.3.1 and 1.3.2</a><ul>
<li><a class="reference internal" href="#new-features">New features</a></li>
<li><a class="reference internal" href="#bug-fixes-maintenance">Bug fixes / Maintenance</a></li>
</ul>
</li>
<li><a class="reference internal" href="#changes-between-1-3-0-and-1-3-1">Changes between 1.3.0 and 1.3.1</a><ul>
<li><a class="reference internal" href="#id1">New features</a></li>
<li><a class="reference internal" href="#fixes-maintenance">Fixes / Maintenance</a></li>
</ul>
</li>
<li><a class="reference internal" href="#changes-between-1-2-1-and-1-3-0">Changes between 1.2.1 and 1.3.0</a></li>
<li><a class="reference internal" href="#changes-between-1-2-1-and-1-2-0">Changes between 1.2.1 and 1.2.0</a></li>
<li><a class="reference internal" href="#changes-between-1-2-and-1-1-1">Changes between 1.2 and 1.1.1</a></li>
<li><a class="reference internal" href="#changes-between-1-1-1-and-1-1-0">Changes between 1.1.1 and 1.1.0</a></li>
<li><a class="reference internal" href="#changes-between-1-1-0-and-1-0-2">Changes between 1.1.0 and 1.0.2</a></li>
<li><a class="reference internal" href="#changes-between-1-0-1-and-1-0-2">Changes between 1.0.1 and 1.0.2</a></li>
<li><a class="reference internal" href="#changes-between-1-0-0-and-1-0-1">Changes between 1.0.0 and 1.0.1</a></li>
<li><a class="reference internal" href="#changes-between-1-0-0b9-and-1-0-0">Changes between 1.0.0b9 and 1.0.0</a></li>
<li><a class="reference internal" href="#changes-between-1-0-0b8-and-1-0-0b9">Changes between 1.0.0b8 and 1.0.0b9</a></li>
<li><a class="reference internal" href="#changes-between-1-0-0b7-and-1-0-0b8">Changes between 1.0.0b7 and 1.0.0b8</a></li>
<li><a class="reference internal" href="#changes-between-1-0-0b3-and-1-0-0b7">Changes between 1.0.0b3 and 1.0.0b7</a></li>
<li><a class="reference internal" href="#changes-between-1-0-0b1-and-1-0-0b3">Changes between 1.0.0b1 and 1.0.0b3</a></li>
<li><a class="reference internal" href="#changes-between-0-9-2-and-1-0-0b1">Changes between 0.9.2 and 1.0.0b1</a></li>
<li><a class="reference internal" href="#changes-between-0-9-1-and-0-9-2">Changes between 0.9.1 and 0.9.2</a></li>
<li><a class="reference internal" href="#changes-between-0-9-0-and-0-9-1">Changes between 0.9.0 and 0.9.1</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="announce/release-2.0.0.html"
                        title="previous chapter">py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++</a></p>
        </div>
      </div>

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="changelog-history">
<span id="changelog"></span><h1>Changelog history<a class="headerlink" href="#changelog-history" title="Permalink to this headline">¶</a></h1>
<div class="section" id="changes-between-2-3-4-and-2-3-5dev">
<h2>Changes between 2.3.4 and 2.3.5dev<a class="headerlink" href="#changes-between-2-3-4-and-2-3-5dev" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>never consider a fixture function for test function collection</li>
<li>allow re-running of test items / helps to fix pytest-reruntests plugin
and also help to keep less fixture/resource references alive</li>
<li>put captured stdout/stderr into junitxml output even for passing tests
(thanks Adam Goucher)</li>
<li>Issue 265 - integrate nose setup/teardown with setupstate
so it doesnt try to teardown if it did not setup</li>
<li>issue 271 - dont write junitxml on slave nodes</li>
<li>Issue 274 - dont try to show full doctest example
when doctest does not know the example location</li>
<li>issue 280 - disable assertion rewriting on buggy CPython 2.6.0</li>
<li>inject &#8220;getfixture()&#8221; helper to retrieve fixtures from doctests,
thanks Andreas Zeidler</li>
<li>issue 259 - when assertion rewriting, be consistent with the default
source encoding of ASCII on Python 2</li>
<li>issue 251 - report a skip instead of ignoring classes with init</li>
<li>issue250 unicode/str mixes in parametrization names and values now works</li>
<li>issue257, assertion-triggered compilation of source ending in a
comment line doesn&#8217;t blow up in python2.5 (fixed through py&gt;=1.4.13.dev6)</li>
<li>fix &#8211;genscript option to generate standalone scripts that also
work with python3.3 (importer ordering)</li>
<li>issue171 - in assertion rewriting, show the repr of some
global variables</li>
<li>fix option help for &#8220;-k&#8221;</li>
<li>move long description of distribution into README.rst</li>
<li>improve docstring for metafunc.parametrize()</li>
<li>fix bug where using capsys with pytest.set_trace() in a test
function would break when looking at capsys.readouterr()</li>
<li>allow to specify prefixes starting with &#8220;_&#8221; when
customizing python_functions test discovery. (thanks Graham Horler)</li>
<li>improve PYTEST_DEBUG tracing output by puting
extra data on a new lines with additional indent</li>
<li>ensure OutcomeExceptions like skip/fail have initialized exception attributes</li>
<li>issue 260 - don&#8217;t use nose special setup on plain unittest cases</li>
<li>fix issue134 - print the collect errors that prevent running specified test items</li>
<li>fix issue266 - accept unicode in MarkEvaluator expressions</li>
</ul>
</div>
<div class="section" id="changes-between-2-3-3-and-2-3-4">
<h2>Changes between 2.3.3 and 2.3.4<a class="headerlink" href="#changes-between-2-3-3-and-2-3-4" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>yielded test functions will now have autouse-fixtures active but
cannot accept fixtures as funcargs - it&#8217;s anyway recommended to
rather use the post-2.0 parametrize features instead of yield, see:
<a class="reference external" href="http://pytest.org/latest/example/parametrize.html">http://pytest.org/latest/example/parametrize.html</a></li>
<li>fix autouse-issue where autouse-fixtures would not be discovered
if defined in a a/conftest.py file and tests in a/tests/test_some.py</li>
<li>fix issue226 - LIFO ordering for fixture teardowns</li>
<li>fix issue224 - invocations with &gt;256 char arguments now work</li>
<li>fix issue91 - add/discuss package/directory level setups in example</li>
<li>allow to dynamically define markers via
item.keywords[...]=assignment integrating with &#8220;-m&#8221; option</li>
<li>make &#8220;-k&#8221; accept an expressions the same as with &#8220;-m&#8221; so that one
can write: -k &#8220;name1 or name2&#8221; etc.  This is a slight incompatibility
if you used special syntax like &#8220;TestClass.test_method&#8221; which you now
need to write as -k &#8220;TestClass and test_method&#8221; to match a certain
method in a certain test class.</li>
</ul>
</div>
<div class="section" id="changes-between-2-3-2-and-2-3-3">
<h2>Changes between 2.3.2 and 2.3.3<a class="headerlink" href="#changes-between-2-3-2-and-2-3-3" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue214 - parse modules that contain special objects like e. g.
flask&#8217;s request object which blows up on getattr access if no request
is active. thanks Thomas Waldmann.</li>
<li>fix issue213 - allow to parametrize with values like numpy arrays that
do not support an __eq__ operator</li>
<li>fix issue215 - split test_python.org into multiple files</li>
<li>fix issue148 - &#64;unittest.skip on classes is now recognized and avoids
calling setUpClass/tearDownClass, thanks Pavel Repin</li>
<li>fix issue209 - reintroduce python2.4 support by depending on newer
pylib which re-introduced statement-finding for pre-AST interpreters</li>
<li>nose support: only call setup if its a callable, thanks Andrew
Taumoefolau</li>
<li>fix issue219 - add py2.4-3.3 classifiers to TROVE list</li>
<li>in tracebacks <em>,*</em> arg values are now shown next to normal arguments
(thanks Manuel Jacob)</li>
<li>fix issue217 - support mock.patch with pytest&#8217;s fixtures - note that
you need either mock-1.0.1 or the python3.3 builtin unittest.mock.</li>
<li>fix issue127 - improve documentation for pytest_addoption() and
add a <tt class="docutils literal"><span class="pre">config.getoption(name)</span></tt> helper function for consistency.</li>
</ul>
</div>
<div class="section" id="changes-between-2-3-1-and-2-3-2">
<h2>Changes between 2.3.1 and 2.3.2<a class="headerlink" href="#changes-between-2-3-1-and-2-3-2" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue208 and fix issue29 use new py version to avoid long pauses
when printing tracebacks in long modules</li>
<li>fix issue205 - conftests in subdirs customizing
pytest_pycollect_makemodule and pytest_pycollect_makeitem
now work properly</li>
<li>fix teardown-ordering for parametrized setups</li>
<li>fix issue127 - better documentation for pytest_addoption
and related objects.</li>
<li>fix unittest behaviour: TestCase.runtest only called if there are
test methods defined</li>
<li>improve trial support: don&#8217;t collect its empty
unittest.TestCase.runTest() method</li>
<li>&#8220;python setup.py test&#8221; now works with pytest itself</li>
<li>fix/improve internal/packaging related bits:<ul>
<li>exception message check of test_nose.py now passes on python33 as well</li>
<li>issue206 - fix test_assertrewrite.py to work when a global
PYTHONDONTWRITEBYTECODE=1 is present</li>
<li>add tox.ini to pytest distribution so that ignore-dirs and others config
bits are properly distributed for maintainers who run pytest-own tests</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="changes-between-2-3-0-and-2-3-1">
<h2>Changes between 2.3.0 and 2.3.1<a class="headerlink" href="#changes-between-2-3-0-and-2-3-1" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue202 - fix regression: using &#8220;self&#8221; from fixture functions now
works as expected (it&#8217;s the same &#8220;self&#8221; instance that a test method
which uses the fixture sees)</li>
<li>skip pexpect using tests (test_pdb.py mostly) on freebsd* systems
due to pexpect not supporting it properly (hanging)</li>
<li>link to web pages from &#8211;markers output which provides help for
pytest.mark.* usage.</li>
</ul>
</div>
<div class="section" id="changes-between-2-2-4-and-2-3-0">
<h2>Changes between 2.2.4 and 2.3.0<a class="headerlink" href="#changes-between-2-2-4-and-2-3-0" title="Permalink to this headline">¶</a></h2>
<ul>
<li><p class="first">fix issue202 - better automatic names for parametrized test functions</p>
</li>
<li><p class="first">fix issue139 - introduce &#64;pytest.fixture which allows direct scoping
and parametrization of funcarg factories.</p>
</li>
<li><p class="first">fix issue198 - conftest fixtures were not found on windows32 in some
circumstances with nested directory structures due to path manipulation issues</p>
</li>
<li><p class="first">fix issue193 skip test functions with were parametrized with empty
parameter sets</p>
</li>
<li><p class="first">fix python3.3 compat, mostly reporting bits that previously depended
on dict ordering</p>
</li>
<li><p class="first">introduce re-ordering of tests by resource and parametrization setup
which takes precedence to the usual file-ordering</p>
</li>
<li><p class="first">fix issue185 monkeypatching time.time does not cause pytest to fail</p>
</li>
<li><p class="first">fix issue172 duplicate call of pytest.fixture decoratored setup_module
functions</p>
</li>
<li><p class="first">fix junitxml=path construction so that if tests change the
current working directory and the path is a relative path
it is constructed correctly from the original current working dir.</p>
</li>
<li><p class="first">fix &#8220;python setup.py test&#8221; example to cause a proper &#8220;errno&#8221; return</p>
</li>
<li><p class="first">fix issue165 - fix broken doc links and mention stackoverflow for FAQ</p>
</li>
<li><p class="first">catch unicode-issues when writing failure representations
to terminal to prevent the whole session from crashing</p>
</li>
<li><p class="first">fix xfail/skip confusion: a skip-mark or an imperative pytest.skip
will now take precedence before xfail-markers because we
can&#8217;t determine xfail/xpass status in case of a skip. see also:
<a class="reference external" href="http://stackoverflow.com/questions/11105828/in-py-test-when-i-explicitly-skip-a-test-that-is-marked-as-xfail-how-can-i-get">http://stackoverflow.com/questions/11105828/in-py-test-when-i-explicitly-skip-a-test-that-is-marked-as-xfail-how-can-i-get</a></p>
</li>
<li><p class="first">always report installed 3rd party plugins in the header of a test run</p>
</li>
<li><p class="first">fix issue160: a failing setup of an xfail-marked tests should
be reported as xfail (not xpass)</p>
</li>
<li><p class="first">fix issue128: show captured output when capsys/capfd are used</p>
</li>
<li><p class="first">fix issue179: propperly show the dependency chain of factories</p>
</li>
<li><p class="first">pluginmanager.register(...) now raises ValueError if the
plugin has been already registered or the name is taken</p>
</li>
<li><p class="first">fix issue159: improve <a class="reference external" href="http://pytest.org/latest/faq.html">http://pytest.org/latest/faq.html</a>
especially with respect to the &#8220;magic&#8221; history, also mention
pytest-django, trial and unittest integration.</p>
</li>
<li><p class="first">make request.keywords and node.keywords writable.  All descendant
collection nodes will see keyword values.  Keywords are dictionaries
containing markers and other info.</p>
</li>
<li><p class="first">fix issue 178: xml binary escapes are now wrapped in py.xml.raw</p>
</li>
<li><p class="first">fix issue 176: correctly catch the builtin AssertionError
even when we replaced AssertionError with a subclass on the
python level</p>
</li>
<li><p class="first">factory discovery no longer fails with magic global callables
that provide no sane __code__ object (mock.call for example)</p>
</li>
<li><p class="first">fix issue 182: testdir.inprocess_run now considers passed plugins</p>
</li>
<li><dl class="first docutils">
<dt>fix issue 188: ensure sys.exc_info is clear on python2</dt>
<dd><p class="first last">before calling into a test</p>
</dd>
</dl>
</li>
<li><p class="first">fix issue 191: add unittest TestCase runTest method support</p>
</li>
<li><p class="first">fix issue 156: monkeypatch correctly handles class level descriptors</p>
</li>
<li><p class="first">reporting refinements:</p>
<ul class="simple">
<li>pytest_report_header now receives a &#8220;startdir&#8221; so that
you can use startdir.bestrelpath(yourpath) to show
nice relative path</li>
<li>allow plugins to implement both pytest_report_header and
pytest_sessionstart (sessionstart is invoked first).</li>
<li>don&#8217;t show deselected reason line if there is none</li>
<li>py.test -vv will show all of assert comparisations instead of truncating</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="changes-between-2-2-3-and-2-2-4">
<h2>Changes between 2.2.3 and 2.2.4<a class="headerlink" href="#changes-between-2-2-3-and-2-2-4" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix error message for rewritten assertions involving the % operator</li>
<li>fix issue 126: correctly match all invalid xml characters for junitxml
binary escape</li>
<li>fix issue with unittest: now &#64;unittest.expectedFailure markers should
be processed correctly (you can also use &#64;pytest.mark markers)</li>
<li>document integration with the extended distribute/setuptools test commands</li>
<li>fix issue 140: propperly get the real functions
of bound classmethods for setup/teardown_class</li>
<li>fix issue #141: switch from the deceased paste.pocoo.org to bpaste.net</li>
<li>fix issue #143: call unconfigure/sessionfinish always when
configure/sessionstart where called</li>
<li>fix issue #144: better mangle test ids to junitxml classnames</li>
<li>upgrade distribute_setup.py to 0.6.27</li>
</ul>
</div>
<div class="section" id="changes-between-2-2-2-and-2-2-3">
<h2>Changes between 2.2.2 and 2.2.3<a class="headerlink" href="#changes-between-2-2-2-and-2-2-3" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix uploaded package to only include neccesary files</li>
</ul>
</div>
<div class="section" id="changes-between-2-2-1-and-2-2-2">
<h2>Changes between 2.2.1 and 2.2.2<a class="headerlink" href="#changes-between-2-2-1-and-2-2-2" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue101: wrong args to unittest.TestCase test function now
produce better output</li>
<li>fix issue102: report more useful errors and hints for when a
test directory was renamed and some pyc/__pycache__ remain</li>
<li>fix issue106: allow parametrize to be applied multiple times
e.g. from module, class and at function level.</li>
<li>fix issue107: actually perform session scope finalization</li>
<li>don&#8217;t check in parametrize if indirect parameters are funcarg names</li>
<li>add chdir method to monkeypatch funcarg</li>
<li>fix crash resulting from calling monkeypatch undo a second time</li>
<li>fix issue115: make &#8211;collectonly robust against early failure
(missing files/directories)</li>
<li>&#8220;-qq &#8211;collectonly&#8221; now shows only files and the number of tests in them</li>
<li>&#8220;-q &#8211;collectonly&#8221; now shows test ids</li>
<li>allow adding of attributes to test reports such that it also works
with distributed testing (no upgrade of pytest-xdist needed)</li>
</ul>
</div>
<div class="section" id="changes-between-2-2-0-and-2-2-1">
<h2>Changes between 2.2.0 and 2.2.1<a class="headerlink" href="#changes-between-2-2-0-and-2-2-1" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue99 (in pytest and py) internallerrors with resultlog now
produce better output - fixed by normalizing pytest_internalerror
input arguments.</li>
<li>fix issue97 / traceback issues (in pytest and py) improve traceback output
in conjunction with jinja2 and cython which hack tracebacks</li>
<li>fix issue93 (in pytest and pytest-xdist) avoid &#8220;delayed teardowns&#8221;:
the final test in a test node will now run its teardown directly
instead of waiting for the end of the session. Thanks Dave Hunt for
the good reporting and feedback.  The pytest_runtest_protocol as well
as the pytest_runtest_teardown hooks now have &#8220;nextitem&#8221; available
which will be None indicating the end of the test run.</li>
<li>fix collection crash due to unknown-source collected items, thanks
to Ralf Schmitt (fixed by depending on a more recent pylib)</li>
</ul>
</div>
<div class="section" id="changes-between-2-1-3-and-2-2-0">
<h2>Changes between 2.1.3 and 2.2.0<a class="headerlink" href="#changes-between-2-1-3-and-2-2-0" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue90: introduce eager tearing down of test items so that
teardown function are called earlier.</li>
<li>add an all-powerful metafunc.parametrize function which allows to
parametrize test function arguments in multiple steps and therefore
from indepdenent plugins and palces.</li>
<li>add a &#64;pytest.mark.parametrize helper which allows to easily
call a test function with different argument values</li>
<li>Add examples to the &#8220;parametrize&#8221; example page, including a quick port
of Test scenarios and the new parametrize function and decorator.</li>
<li>introduce registration for &#8220;pytest.mark.*&#8221; helpers via ini-files
or through plugin hooks.  Also introduce a &#8220;&#8211;strict&#8221; option which
will treat unregistered markers as errors
allowing to avoid typos and maintain a well described set of markers
for your test suite.  See exaples at <a class="reference external" href="http://pytest.org/latest/mark.html">http://pytest.org/latest/mark.html</a>
and its links.</li>
<li>issue50: introduce &#8220;-m marker&#8221; option to select tests based on markers
(this is a stricter and more predictable version of &#8216;-k&#8217; in that &#8220;-m&#8221;
only matches complete markers and has more obvious rules for and/or
semantics.</li>
<li>new feature to help optimizing the speed of your tests:
&#8211;durations=N option for displaying N slowest test calls
and setup/teardown methods.</li>
<li>fix issue87: &#8211;pastebin now works with python3</li>
<li>fix issue89: &#8211;pdb with unexpected exceptions in doctest work more sensibly</li>
<li>fix and cleanup pytest&#8217;s own test suite to not leak FDs</li>
<li>fix issue83: link to generated funcarg list</li>
<li>fix issue74: pyarg module names are now checked against imp.find_module false positives</li>
<li>fix compatibility with twisted/trial-11.1.0 use cases</li>
<li>simplify Node.listchain</li>
<li>simplify junitxml output code by relying on py.xml</li>
<li>add support for skip properties on unittest classes and functions</li>
</ul>
</div>
<div class="section" id="changes-between-2-1-2-and-2-1-3">
<h2>Changes between 2.1.2 and 2.1.3<a class="headerlink" href="#changes-between-2-1-2-and-2-1-3" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue79: assertion rewriting failed on some comparisons in boolops</li>
<li>correctly handle zero length arguments (a la pytest &#8216;&#8217;)</li>
<li>fix issue67 / junitxml now contains correct test durations, thanks ronny</li>
<li>fix issue75 / skipping test failure on jython</li>
<li>fix issue77 / Allow assertrepr_compare hook to apply to a subset of tests</li>
</ul>
</div>
<div class="section" id="changes-between-2-1-1-and-2-1-2">
<h2>Changes between 2.1.1 and 2.1.2<a class="headerlink" href="#changes-between-2-1-1-and-2-1-2" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix assertion rewriting on files with windows newlines on some Python versions</li>
<li>refine test discovery by package/module name (&#8211;pyargs), thanks Florian Mayer</li>
<li>fix issue69 / assertion rewriting fixed on some boolean operations</li>
<li>fix issue68 / packages now work with assertion rewriting</li>
<li>fix issue66: use different assertion rewriting caches when the -O option is passed</li>
<li>don&#8217;t try assertion rewriting on Jython, use reinterp</li>
</ul>
</div>
<div class="section" id="changes-between-2-1-0-and-2-1-1">
<h2>Changes between 2.1.0 and 2.1.1<a class="headerlink" href="#changes-between-2-1-0-and-2-1-1" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue64 / pytest.set_trace now works within pytest_generate_tests hooks</li>
<li>fix issue60 / fix error conditions involving the creation of __pycache__</li>
<li>fix issue63 / assertion rewriting on inserts involving strings containing &#8216;%&#8217;</li>
<li>fix assertion rewriting on calls with a ** arg</li>
<li>don&#8217;t cache rewritten modules if bytecode generation is disabled</li>
<li>fix assertion rewriting in read-only directories</li>
<li>fix issue59: provide system-out/err tags for junitxml output</li>
<li>fix issue61: assertion rewriting on boolean operations with 3 or more operands</li>
<li>you can now build a man page with &#8220;cd doc ; make man&#8221;</li>
</ul>
</div>
<div class="section" id="changes-between-2-0-3-and-2-1-0-dev">
<h2>Changes between 2.0.3 and 2.1.0.DEV<a class="headerlink" href="#changes-between-2-0-3-and-2-1-0-dev" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue53 call nosestyle setup functions with correct ordering</li>
<li>fix issue58 and issue59: new assertion code fixes</li>
<li>merge Benjamin&#8217;s assertionrewrite branch: now assertions
for test modules on python 2.6 and above are done by rewriting
the AST and saving the pyc file before the test module is imported.
see doc/assert.txt for more info.</li>
<li>fix issue43: improve doctests with better traceback reporting on
unexpected exceptions</li>
<li>fix issue47: timing output in junitxml for test cases is now correct</li>
<li>fix issue48: typo in MarkInfo repr leading to exception</li>
<li>fix issue49: avoid confusing error when initizaliation partially fails</li>
<li>fix issue44: env/username expansion for junitxml file path</li>
<li>show releaselevel information in test runs for pypy</li>
<li>reworked doc pages for better navigation and PDF generation</li>
<li>report KeyboardInterrupt even if interrupted during session startup</li>
<li>fix issue 35 - provide PDF doc version and download link from index page</li>
</ul>
</div>
<div class="section" id="changes-between-2-0-2-and-2-0-3">
<h2>Changes between 2.0.2 and 2.0.3<a class="headerlink" href="#changes-between-2-0-2-and-2-0-3" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue38: nicer tracebacks on calls to hooks, particularly early
configure/sessionstart ones</li>
<li>fix missing skip reason/meta information in junitxml files, reported
via <a class="reference external" href="http://lists.idyll.org/pipermail/testing-in-python/2011-March/003928.html">http://lists.idyll.org/pipermail/testing-in-python/2011-March/003928.html</a></li>
<li>fix issue34: avoid collection failure with &#8220;test&#8221; prefixed classes
deriving from object.</li>
<li>don&#8217;t require zlib (and other libs) for genscript plugin without
&#8211;genscript actually being used.</li>
<li>speed up skips (by not doing a full traceback represenation
internally)</li>
<li>fix issue37: avoid invalid characters in junitxml&#8217;s output</li>
</ul>
</div>
<div class="section" id="changes-between-2-0-1-and-2-0-2">
<h2>Changes between 2.0.1 and 2.0.2<a class="headerlink" href="#changes-between-2-0-1-and-2-0-2" title="Permalink to this headline">¶</a></h2>
<ul>
<li><p class="first">tackle issue32 - speed up test runs of very quick test functions
by reducing the relative overhead</p>
</li>
<li><p class="first">fix issue30 - extended xfail/skipif handling and improved reporting.
If you have a syntax error in your skip/xfail
expressions you now get nice error reports.</p>
<p>Also you can now access module globals from xfail/skipif
expressions so that this for example works now:</p>
<div class="highlight-python"><pre>import pytest
import mymodule
@pytest.mark.skipif("mymodule.__version__[0] == "1")
def test_function():
    pass</pre>
</div>
<p>This will not run the test function if the module&#8217;s version string
does not start with a &#8220;1&#8221;.  Note that specifying a string instead
of a boolean expressions allows py.test to report meaningful information
when summarizing a test run as to what conditions lead to skipping
(or xfail-ing) tests.</p>
</li>
<li><p class="first">fix issue28 - setup_method and pytest_generate_tests work together
The setup_method fixture method now gets called also for
test function invocations generated from the pytest_generate_tests
hook.</p>
</li>
<li><p class="first">fix issue27 - collectonly and keyword-selection (-k) now work together
Also, if you do &#8220;py.test &#8211;collectonly -q&#8221; you now get a flat list
of test ids that you can use to paste to the py.test commandline
in order to execute a particular test.</p>
</li>
<li><p class="first">fix issue25 avoid reported problems with &#8211;pdb and python3.2/encodings output</p>
</li>
<li><p class="first">fix issue23 - tmpdir argument now works on Python3.2 and WindowsXP
Starting with Python3.2 os.symlink may be supported. By requiring
a newer py lib version the py.path.local() implementation acknowledges
this.</p>
</li>
<li><p class="first">fixed typos in the docs (thanks Victor Garcia, Brianna Laugher) and particular
thanks to Laura Creighton who also revieved parts of the documentation.</p>
</li>
<li><p class="first">fix slighly wrong output of verbose progress reporting for classes
(thanks Amaury)</p>
</li>
<li><p class="first">more precise (avoiding of) deprecation warnings for node.Class|Function accesses</p>
</li>
<li><p class="first">avoid std unittest assertion helper code in tracebacks (thanks Ronny)</p>
</li>
</ul>
</div>
<div class="section" id="changes-between-2-0-0-and-2-0-1">
<h2>Changes between 2.0.0 and 2.0.1<a class="headerlink" href="#changes-between-2-0-0-and-2-0-1" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>refine and unify initial capturing so that it works nicely
even if the logging module is used on an early-loaded conftest.py
file or plugin.</li>
<li>allow to omit &#8220;()&#8221; in test ids to allow for uniform test ids
as produced by Alfredo&#8217;s nice pytest.vim plugin.</li>
<li>fix issue12 - show plugin versions with &#8220;&#8211;version&#8221; and
&#8220;&#8211;traceconfig&#8221; and also document how to add extra information
to reporting test header</li>
<li>fix issue17 (import-* reporting issue on python3) by
requiring py&gt;1.4.0 (1.4.1 is going to include it)</li>
<li>fix issue10 (numpy arrays truth checking) by refining
assertion interpretation in py lib</li>
<li>fix issue15: make nose compatibility tests compatible
with python3 (now that nose-1.0 supports python3)</li>
<li>remove somewhat surprising &#8220;same-conftest&#8221; detection because
it ignores conftest.py when they appear in several subdirs.</li>
<li>improve assertions (&#8220;not in&#8221;), thanks Floris Bruynooghe</li>
<li>improve behaviour/warnings when running on top of &#8220;python -OO&#8221;
(assertions and docstrings are turned off, leading to potential
false positives)</li>
<li>introduce a pytest_cmdline_processargs(args) hook
to allow dynamic computation of command line arguments.
This fixes a regression because py.test prior to 2.0
allowed to set command line options from conftest.py
files which so far pytest-2.0 only allowed from ini-files now.</li>
<li>fix issue7: assert failures in doctest modules.
unexpected failures in doctests will not generally
show nicer, i.e. within the doctest failing context.</li>
<li>fix issue9: setup/teardown functions for an xfail-marked
test will report as xfail if they fail but report as normally
passing (not xpassing) if they succeed.  This only is true
for &#8220;direct&#8221; setup/teardown invocations because teardown_class/
teardown_module cannot closely relate to a single test.</li>
<li>fix issue14: no logging errors at process exit</li>
<li>refinements to &#8220;collecting&#8221; output on non-ttys</li>
<li>refine internal plugin registration and &#8211;traceconfig output</li>
<li>introduce a mechanism to prevent/unregister plugins from the
command line, see <a class="reference external" href="http://pytest.org/plugins.html#cmdunregister">http://pytest.org/plugins.html#cmdunregister</a></li>
<li>activate resultlog plugin by default</li>
<li>fix regression wrt yielded tests which due to the
collection-before-running semantics were not
setup as with pytest 1.3.4.  Note, however, that
the recommended and much cleaner way to do test
parametraization remains the &#8220;pytest_generate_tests&#8221;
mechanism, see the docs.</li>
</ul>
</div>
<div class="section" id="changes-between-1-3-4-and-2-0-0">
<h2>Changes between 1.3.4 and 2.0.0<a class="headerlink" href="#changes-between-1-3-4-and-2-0-0" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>pytest-2.0 is now its own package and depends on pylib-2.0</li>
<li>new ability: python -m pytest / python -m pytest.main ability</li>
<li>new python invcation: pytest.main(args, plugins) to load
some custom plugins early.</li>
<li>try harder to run unittest test suites in a more compatible manner
by deferring setup/teardown semantics to the unittest package.
also work harder to run twisted/trial and Django tests which
should now basically work by default.</li>
<li>introduce a new way to set config options via ini-style files,
by default setup.cfg and tox.ini files are searched.  The old
ways (certain environment variables, dynamic conftest.py reading
is removed).</li>
<li>add a new &#8220;-q&#8221; option which decreases verbosity and prints a more
nose/unittest-style &#8220;dot&#8221; output.</li>
<li>fix issue135 - marks now work with unittest test cases as well</li>
<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 issue123 - new &#8220;python -m py.test&#8221; invocation for py.test
(requires Python 2.5 or above)</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>introduce (customizable) assertion failure representations and enhance
output on assertion failures for comparisons and other cases (Floris Bruynooghe)</li>
<li>nose-plugin: pass through type-signature failures in setup/teardown
functions instead of not calling them (Ed Singleton)</li>
<li>remove py.test.collect.Directory (follows from a major refactoring
and simplification of the collection process)</li>
<li>majorly reduce py.test core code, shift function/python testing to own plugin</li>
<li>fix issue88 (finding custom test nodes from command line arg)</li>
<li>refine &#8216;tmpdir&#8217; creation, will now create basenames better associated
with test names (thanks Ronny)</li>
<li>&#8220;xpass&#8221; (unexpected pass) tests don&#8217;t cause exitcode!=0</li>
<li>fix issue131 / issue60 - importing doctests in __init__ files used as namespace packages</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>
<li>add ability to use &#8220;class&#8221; level for cached_setup helper</li>
<li>fix strangeness: mark.* objects are now immutable, create new instances</li>
</ul>
</div>
<div class="section" id="changes-between-1-3-3-and-1-3-4">
<h2>Changes between 1.3.3 and 1.3.4<a class="headerlink" href="#changes-between-1-3-3-and-1-3-4" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue111: improve install documentation for windows</li>
<li>fix issue119: fix custom collectability of __init__.py as a module</li>
<li>fix issue116: &#8211;doctestmodules work with __init__.py files as well</li>
<li>fix issue115: unify internal exception passthrough/catching/GeneratorExit</li>
<li>fix issue118: new &#8211;tb=native for presenting cpython-standard exceptions</li>
</ul>
</div>
<div class="section" id="changes-between-1-3-2-and-1-3-3">
<h2>Changes between 1.3.2 and 1.3.3<a class="headerlink" href="#changes-between-1-3-2-and-1-3-3" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fix issue113: assertion representation problem with triple-quoted strings
(and possibly other cases)</li>
<li>make conftest loading detect that a conftest file with the same
content was already loaded, avoids surprises in nested directory structures
which can be produced e.g. by Hudson. It probably removes the need to use
&#8211;confcutdir in most cases.</li>
<li>fix terminal coloring for win32
(thanks Michael Foord for reporting)</li>
<li>fix weirdness: make terminal width detection work on stdout instead of stdin
(thanks Armin Ronacher for reporting)</li>
<li>remove trailing whitespace in all py/text distribution files</li>
</ul>
</div>
<div class="section" id="changes-between-1-3-1-and-1-3-2">
<h2>Changes between 1.3.1 and 1.3.2<a class="headerlink" href="#changes-between-1-3-1-and-1-3-2" title="Permalink to this headline">¶</a></h2>
<div class="section" id="new-features">
<h3>New features<a class="headerlink" href="#new-features" title="Permalink to this headline">¶</a></h3>
<ul>
<li><p class="first">fix issue103:  introduce py.test.raises as context manager, examples:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">with</span> <span class="n">py</span><span class="o">.</span><span class="n">test</span><span class="o">.</span><span class="n">raises</span><span class="p">(</span><span class="ne">ZeroDivisionError</span><span class="p">):</span>
    <span class="n">x</span> <span class="o">=</span> <span class="mi">0</span>
    <span class="mi">1</span> <span class="o">/</span> <span class="n">x</span>

<span class="k">with</span> <span class="n">py</span><span class="o">.</span><span class="n">test</span><span class="o">.</span><span class="n">raises</span><span class="p">(</span><span class="ne">RuntimeError</span><span class="p">)</span> <span class="k">as</span> <span class="n">excinfo</span><span class="p">:</span>
    <span class="n">call_something</span><span class="p">()</span>

<span class="c"># you may do extra checks on excinfo.value|type|traceback here</span>
</pre></div>
</div>
<p>(thanks Ronny Pfannschmidt)</p>
</li>
<li><p class="first">Funcarg factories can now dynamically apply a marker to a
test invocation.  This is for example useful if a factory
provides parameters to a test which are expected-to-fail:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">pytest_funcarg__arg</span><span class="p">(</span><span class="n">request</span><span class="p">):</span>
    <span class="n">request</span><span class="o">.</span><span class="n">applymarker</span><span class="p">(</span><span class="n">py</span><span class="o">.</span><span class="n">test</span><span class="o">.</span><span class="n">mark</span><span class="o">.</span><span class="n">xfail</span><span class="p">(</span><span class="n">reason</span><span class="o">=</span><span class="s">&quot;flaky config&quot;</span><span class="p">))</span>
    <span class="o">...</span>

<span class="k">def</span> <span class="nf">test_function</span><span class="p">(</span><span class="n">arg</span><span class="p">):</span>
    <span class="o">...</span>
</pre></div>
</div>
</li>
<li><p class="first">improved error reporting on collection and import errors. This makes
use of a more general mechanism, namely that for custom test item/collect
nodes <tt class="docutils literal"><span class="pre">node.repr_failure(excinfo)</span></tt> is now uniformly called so that you can
override it to return a string error representation of your choice
which is going to be reported as a (red) string.</p>
</li>
<li><p class="first">introduce &#8216;&#8211;junitprefix=STR&#8217; option to prepend a prefix
to all reports in the junitxml file.</p>
</li>
</ul>
</div>
<div class="section" id="bug-fixes-maintenance">
<h3>Bug fixes / Maintenance<a class="headerlink" href="#bug-fixes-maintenance" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li>make tests and the <tt class="docutils literal"><span class="pre">pytest_recwarn</span></tt> plugin in particular fully compatible
to Python2.7 (if you use the <tt class="docutils literal"><span class="pre">recwarn</span></tt> funcarg warnings will be enabled so that
you can properly check for their existence in a cross-python manner).</li>
<li>refine &#8211;pdb: ignore xfailed tests, unify its TB-reporting and
don&#8217;t display failures again at the end.</li>
<li>fix assertion interpretation with the ** operator (thanks Benjamin Peterson)</li>
<li>fix issue105 assignment on the same line as a failing assertion (thanks Benjamin Peterson)</li>
<li>fix issue104 proper escaping for test names in junitxml plugin (thanks anonymous)</li>
<li>fix issue57 -f|&#8211;looponfail to work with xpassing tests (thanks Ronny)</li>
<li>fix issue92 collectonly reporter and &#8211;pastebin (thanks Benjamin Peterson)</li>
<li>fix py.code.compile(source) to generate unique filenames</li>
<li>fix assertion re-interp problems on PyPy, by defering code
compilation to the (overridable) Frame.eval class. (thanks Amaury Forgeot)</li>
<li>fix py.path.local.pyimport() to work with directories</li>
<li>streamline py.path.local.mkdtemp implementation and usage</li>
<li>don&#8217;t print empty lines when showing junitxml-filename</li>
<li>add optional boolean ignore_errors parameter to py.path.local.remove</li>
<li>fix terminal writing on win32/python2.4</li>
<li>py.process.cmdexec() now tries harder to return properly encoded unicode objects
on all python versions</li>
<li>install plain py.test/py.which scripts also for Jython, this helps to
get canonical script paths in virtualenv situations</li>
<li>make path.bestrelpath(path) return &#8221;.&#8221;, note that when calling
X.bestrelpath the assumption is that X is a directory.</li>
<li>make initial conftest discovery ignore &#8220;&#8211;&#8221; prefixed arguments</li>
<li>fix resultlog plugin when used in an multicpu/multihost xdist situation
(thanks Jakub Gustak)</li>
<li>perform distributed testing related reporting in the xdist-plugin
rather than having dist-related code in the generic py.test
distribution</li>
<li>fix homedir detection on Windows</li>
<li>ship distribute_setup.py version 0.6.13</li>
</ul>
</div>
</div>
<div class="section" id="changes-between-1-3-0-and-1-3-1">
<h2>Changes between 1.3.0 and 1.3.1<a class="headerlink" href="#changes-between-1-3-0-and-1-3-1" title="Permalink to this headline">¶</a></h2>
<div class="section" id="id1">
<h3>New features<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h3>
<ul>
<li><p class="first">issue91: introduce new py.test.xfail(reason) helper
to imperatively mark a test as expected to fail. Can
be used from within setup and test functions. This is
useful especially for parametrized tests when certain
configurations are expected-to-fail.  In this case the
declarative approach with the &#64;py.test.mark.xfail cannot
be used as it would mark all configurations as xfail.</p>
</li>
<li><p class="first">issue102: introduce new &#8211;maxfail=NUM option to stop
test runs after NUM failures.  This is a generalization
of the &#8216;-x&#8217; or &#8216;&#8211;exitfirst&#8217; option which is now equivalent
to &#8216;&#8211;maxfail=1&#8217;.  Both &#8216;-x&#8217; and &#8216;&#8211;maxfail&#8217; will
now also print a line near the end indicating the Interruption.</p>
</li>
<li><p class="first">issue89: allow py.test.mark decorators to be used on classes
(class decorators were introduced with python2.6) and
also allow to have multiple markers applied at class/module level
by specifying a list.</p>
</li>
<li><p class="first">improve and refine letter reporting in the progress bar:
.  pass
f  failed test
s  skipped tests (reminder: use for dependency/platform mismatch only)
x  xfailed test (test that was expected to fail)
X  xpassed test (test that was expected to fail but passed)</p>
<p>You can use any combination of &#8216;fsxX&#8217; with the &#8216;-r&#8217; extended
reporting option. The xfail/xpass results will show up as
skipped tests in the junitxml output - which also fixes
issue99.</p>
</li>
<li><p class="first">make py.test.cmdline.main() return the exitstatus instead of raising
SystemExit and also allow it to be called multiple times.  This of
course requires that your application and tests are properly teared
down and don&#8217;t have global state.</p>
</li>
</ul>
</div>
<div class="section" id="fixes-maintenance">
<h3>Fixes / Maintenance<a class="headerlink" href="#fixes-maintenance" title="Permalink to this headline">¶</a></h3>
<ul class="simple">
<li>improved traceback presentation:
- improved and unified reporting for &#8220;&#8211;tb=short&#8221; option
- Errors during test module imports are much shorter, (using &#8211;tb=short style)
- raises shows shorter more relevant tracebacks
- &#8211;fulltrace now more systematically makes traces longer / inhibits cutting</li>
<li>improve support for raises and other dynamically compiled code by
manipulating python&#8217;s linecache.cache instead of the previous
rather hacky way of creating custom code objects.  This makes
it seemlessly work on Jython and PyPy where it previously didn&#8217;t.</li>
<li>fix issue96: make capturing more resilient against Control-C
interruptions (involved somewhat substantial refactoring
to the underlying capturing functionality to avoid race
conditions).</li>
<li>fix chaining of conditional skipif/xfail decorators - so it works now
as expected to use multiple &#64;py.test.mark.skipif(condition) decorators,
including specific reporting which of the conditions lead to skipping.</li>
<li>fix issue95: late-import zlib so that it&#8217;s not required
for general py.test startup.</li>
<li>fix issue94: make reporting more robust against bogus source code
(and internally be more careful when presenting unexpected byte sequences)</li>
</ul>
</div>
</div>
<div class="section" id="changes-between-1-2-1-and-1-3-0">
<h2>Changes between 1.2.1 and 1.3.0<a class="headerlink" href="#changes-between-1-2-1-and-1-3-0" title="Permalink to this headline">¶</a></h2>
<ul>
<li><p class="first">deprecate &#8211;report option in favour of a new shorter and easier to
remember -r option: it takes a string argument consisting of any
combination of &#8216;xfsX&#8217; characters.  They relate to the single chars
you see during the dotted progress printing and will print an extra line
per test at the end of the test run.  This extra line indicates the exact
position or test ID that you directly paste to the py.test cmdline in order
to re-run a particular test.</p>
</li>
<li><p class="first">allow external plugins to register new hooks via the new
pytest_addhooks(pluginmanager) hook.  The new release of
the pytest-xdist plugin for distributed and looponfailing
testing requires this feature.</p>
</li>
<li><p class="first">add a new pytest_ignore_collect(path, config) hook to allow projects and
plugins to define exclusion behaviour for their directory structure -
for example you may define in a conftest.py this method:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="k">def</span> <span class="nf">pytest_ignore_collect</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
    <span class="k">return</span> <span class="n">path</span><span class="o">.</span><span class="n">check</span><span class="p">(</span><span class="n">link</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
</pre></div>
</div>
<p>to prevent even a collection try of any tests in symlinked dirs.</p>
</li>
<li><p class="first">new pytest_pycollect_makemodule(path, parent) hook for
allowing customization of the Module collection object for a
matching test module.</p>
</li>
<li><p class="first">extend and refine xfail mechanism:
<tt class="docutils literal"><span class="pre">&#64;py.test.mark.xfail(run=False)</span></tt> do not run the decorated test
<tt class="docutils literal"><span class="pre">&#64;py.test.mark.xfail(reason=&quot;...&quot;)</span></tt> prints the reason string in xfail summaries
specifiying <tt class="docutils literal"><span class="pre">--runxfail</span></tt> on command line virtually ignores xfail markers</p>
</li>
<li><p class="first">expose (previously internal) commonly useful methods:
py.io.get_terminal_with() -&gt; return terminal width
py.io.ansi_print(...) -&gt; print colored/bold text on linux/win32
py.io.saferepr(obj) -&gt; return limited representation string</p>
</li>
<li><p class="first">expose test outcome related exceptions as py.test.skip.Exception,
py.test.raises.Exception etc., useful mostly for plugins
doing special outcome interpretation/tweaking</p>
</li>
<li><p class="first">(issue85) fix junitxml plugin to handle tests with non-ascii output</p>
</li>
<li><p class="first">fix/refine python3 compatibility (thanks Benjamin Peterson)</p>
</li>
<li><p class="first">fixes for making the jython/win32 combination work, note however:
jython2.5.1/win32 does not provide a command line launcher, see
<a class="reference external" href="http://bugs.jython.org/issue1491">http://bugs.jython.org/issue1491</a> . See pylib install documentation
for how to work around.</p>
</li>
<li><p class="first">fixes for handling of unicode exception values and unprintable objects</p>
</li>
<li><p class="first">(issue87) fix unboundlocal error in assertionold code</p>
</li>
<li><p class="first">(issue86) improve documentation for looponfailing</p>
</li>
<li><p class="first">refine IO capturing: stdin-redirect pseudo-file now has a NOP close() method</p>
</li>
<li><p class="first">ship distribute_setup.py version 0.6.10</p>
</li>
<li><p class="first">added links to the new capturelog and coverage plugins</p>
</li>
</ul>
</div>
<div class="section" id="changes-between-1-2-1-and-1-2-0">
<h2>Changes between 1.2.1 and 1.2.0<a class="headerlink" href="#changes-between-1-2-1-and-1-2-0" title="Permalink to this headline">¶</a></h2>
<ul>
<li><p class="first">refined usage and options for &#8220;py.cleanup&#8221;:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="n">py</span><span class="o">.</span><span class="n">cleanup</span>     <span class="c"># remove &quot;*.pyc&quot; and &quot;*$py.class&quot; (jython) files</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">e</span> <span class="o">.</span><span class="n">swp</span> <span class="o">-</span><span class="n">e</span> <span class="o">.</span><span class="n">cache</span> <span class="c"># also remove files with these extensions</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">s</span>  <span class="c"># remove &quot;build&quot; and &quot;dist&quot; directory next to setup.py files</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">d</span>  <span class="c"># also remove empty directories</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">a</span>  <span class="c"># synonym for &quot;-s -d -e &#39;pip-log.txt&#39;&quot;</span>
<span class="n">py</span><span class="o">.</span><span class="n">cleanup</span> <span class="o">-</span><span class="n">n</span>  <span class="c"># dry run, only show what would be removed</span>
</pre></div>
</div>
</li>
<li><p class="first">add a new option &#8220;py.test &#8211;funcargs&#8221; which shows available funcargs
and their help strings (docstrings on their respective factory function)
for a given test path</p>
</li>
<li><p class="first">display a short and concise traceback if a funcarg lookup fails</p>
</li>
<li><p class="first">early-load &#8220;conftest.py&#8221; files in non-dot first-level sub directories.
allows to conveniently keep and access test-related options in a <tt class="docutils literal"><span class="pre">test</span></tt>
subdir and still add command line options.</p>
</li>
<li><p class="first">fix issue67: new super-short traceback-printing option: &#8220;&#8211;tb=line&#8221; will print a single line for each failing (python) test indicating its filename, lineno and the failure value</p>
</li>
<li><p class="first">fix issue78: always call python-level teardown functions even if the
according setup failed.  This includes refinements for calling setup_module/class functions
which will now only be called once instead of the previous behaviour where they&#8217;d be called
multiple times if they raise an exception (including a Skipped exception).  Any exception
will be re-corded and associated with all tests in the according module/class scope.</p>
</li>
<li><p class="first">fix issue63: assume &lt;40 columns to be a bogus terminal width, default to 80</p>
</li>
<li><p class="first">fix pdb debugging to be in the correct frame on raises-related errors</p>
</li>
<li><p class="first">update apipkg.py to fix an issue where recursive imports might
unnecessarily break importing</p>
</li>
<li><p class="first">fix plugin links</p>
</li>
</ul>
</div>
<div class="section" id="changes-between-1-2-and-1-1-1">
<h2>Changes between 1.2 and 1.1.1<a class="headerlink" href="#changes-between-1-2-and-1-1-1" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>moved dist/looponfailing from py.test core into a new
separately released pytest-xdist plugin.</li>
<li>new junitxml plugin: &#8211;junitxml=path will generate a junit style xml file
which is processable e.g. by the Hudson CI system.</li>
<li>new option: &#8211;genscript=path will generate a standalone py.test script
which will not need any libraries installed.  thanks to Ralf Schmitt.</li>
<li>new option: &#8211;ignore will prevent specified path from collection.
Can be specified multiple times.</li>
<li>new option: &#8211;confcutdir=dir will make py.test only consider conftest
files that are relative to the specified dir.</li>
<li>new funcarg: &#8220;pytestconfig&#8221; is the pytest config object for access
to command line args and can now be easily used in a test.</li>
<li>install &#8216;py.test&#8217; and <cite>py.which</cite> with a <tt class="docutils literal"><span class="pre">-$VERSION</span></tt> suffix to
disambiguate between Python3, python2.X, Jython and PyPy installed versions.</li>
<li>new &#8220;pytestconfig&#8221; funcarg allows access to test config object</li>
<li>new &#8220;pytest_report_header&#8221; hook can return additional lines
to be displayed at the header of a test run.</li>
<li>(experimental) allow &#8220;py.test path::name1::name2::...&#8221; for pointing
to a test within a test collection directly.  This might eventually
evolve as a full substitute to &#8220;-k&#8221; specifications.</li>
<li>streamlined plugin loading: order is now as documented in
customize.html: setuptools, ENV, commandline, conftest.
also setuptools entry point names are turned to canonical namees (&#8220;pytest_*&#8221;)</li>
<li>automatically skip tests that need &#8216;capfd&#8217; but have no os.dup</li>
<li>allow pytest_generate_tests to be defined in classes as well</li>
<li>deprecate usage of &#8216;disabled&#8217; attribute in favour of pytestmark</li>
<li>deprecate definition of Directory, Module, Class and Function nodes
in conftest.py files.  Use pytest collect hooks instead.</li>
<li>collection/item node specific runtest/collect hooks are only called exactly
on matching conftest.py files, i.e. ones which are exactly below
the filesystem path of an item</li>
<li>change: the first pytest_collect_directory hook to return something
will now prevent further hooks to be called.</li>
<li>change: figleaf plugin now requires &#8211;figleaf to run.  Also
change its long command line options to be a bit shorter (see py.test -h).</li>
<li>change: pytest doctest plugin is now enabled by default and has a
new option &#8211;doctest-glob to set a pattern for file matches.</li>
<li>change: remove internal py._* helper vars, only keep py._pydir</li>
<li>robustify capturing to survive if custom pytest_runtest_setup
code failed and prevented the capturing setup code from running.</li>
<li>make py.test.* helpers provided by default plugins visible early -
works transparently both for pydoc and for interactive sessions
which will regularly see e.g. py.test.mark and py.test.importorskip.</li>
<li>simplify internal plugin manager machinery</li>
<li>simplify internal collection tree by introducing a RootCollector node</li>
<li>fix assert reinterpreation that sees a call containing &#8220;keyword=...&#8221;</li>
<li>fix issue66: invoke pytest_sessionstart and pytest_sessionfinish
hooks on slaves during dist-testing, report module/session teardown
hooks correctly.</li>
<li>fix issue65: properly handle dist-testing if no
execnet/py lib installed remotely.</li>
<li>skip some install-tests if no execnet is available</li>
<li>fix docs, fix internal bin/ script generation</li>
</ul>
</div>
<div class="section" id="changes-between-1-1-1-and-1-1-0">
<h2>Changes between 1.1.1 and 1.1.0<a class="headerlink" href="#changes-between-1-1-1-and-1-1-0" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>introduce automatic plugin registration via &#8216;pytest11&#8217;
entrypoints via setuptools&#8217; pkg_resources.iter_entry_points</li>
<li>fix py.test dist-testing to work with execnet &gt;= 1.0.0b4</li>
<li>re-introduce py.test.cmdline.main() for better backward compatibility</li>
<li>svn paths: fix a bug with path.check(versioned=True) for svn paths,
allow &#8216;%&#8217; in svn paths, make svnwc.update() default to interactive mode
like in 1.0.x and add svnwc.update(interactive=False) to inhibit interaction.</li>
<li>refine distributed tarball to contain test and no pyc files</li>
<li>try harder to have deprecation warnings for py.compat.* accesses
report a correct location</li>
</ul>
</div>
<div class="section" id="changes-between-1-1-0-and-1-0-2">
<h2>Changes between 1.1.0 and 1.0.2<a class="headerlink" href="#changes-between-1-1-0-and-1-0-2" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>adjust and improve docs</li>
<li>remove py.rest tool and internal namespace - it was
never really advertised and can still be used with
the old release if needed.  If there is interest
it could be revived into its own tool i guess.</li>
<li>fix issue48 and issue59: raise an Error if the module
from an imported test file does not seem to come from
the filepath - avoids &#8220;same-name&#8221; confusion that has
been reported repeatedly</li>
<li>merged Ronny&#8217;s nose-compatibility hacks: now
nose-style setup_module() and setup() functions are
supported</li>
<li>introduce generalized py.test.mark function marking</li>
<li>reshuffle / refine command line grouping</li>
<li>deprecate parser.addgroup in favour of getgroup which creates option group</li>
<li>add &#8211;report command line option that allows to control showing of skipped/xfailed sections</li>
<li>generalized skipping: a new way to mark python functions with skipif or xfail
at function, class and modules level based on platform or sys-module attributes.</li>
<li>extend py.test.mark decorator to allow for positional args</li>
<li>introduce and test &#8220;py.cleanup -d&#8221; to remove empty directories</li>
<li>fix issue #59 - robustify unittest test collection</li>
<li>make bpython/help interaction work by adding an __all__ attribute
to ApiModule, cleanup initpkg</li>
<li>use MIT license for pylib, add some contributors</li>
<li>remove py.execnet code and substitute all usages with &#8216;execnet&#8217; proper</li>
<li>fix issue50 - cached_setup now caches more to expectations
for test functions with multiple arguments.</li>
<li>merge Jarko&#8217;s fixes, issue #45 and #46</li>
<li>add the ability to specify a path for py.lookup to search in</li>
<li>fix a funcarg cached_setup bug probably only occuring
in distributed testing and &#8220;module&#8221; scope with teardown.</li>
<li>many fixes and changes for making the code base python3 compatible,
many thanks to Benjamin Peterson for helping with this.</li>
<li>consolidate builtins implementation to be compatible with &gt;=2.3,
add helpers to ease keeping 2 and 3k compatible code</li>
<li>deprecate py.compat.doctest|subprocess|textwrap|optparse</li>
<li>deprecate py.magic.autopath, remove py/magic directory</li>
<li>move pytest assertion handling to py/code and a pytest_assertion
plugin, add &#8220;&#8211;no-assert&#8221; option, deprecate py.magic namespaces
in favour of (less) py.code ones.</li>
<li>consolidate and cleanup py/code classes and files</li>
<li>cleanup py/misc, move tests to bin-for-dist</li>
<li>introduce delattr/delitem/delenv methods to py.test&#8217;s monkeypatch funcarg</li>
<li>consolidate py.log implementation, remove old approach.</li>
<li>introduce py.io.TextIO and py.io.BytesIO for distinguishing between
text/unicode and byte-streams (uses underlying standard lib io.*
if available)</li>
<li>make py.unittest_convert helper script available which converts &#8220;unittest.py&#8221;
style files into the simpler assert/direct-test-classes py.test/nosetests
style.  The script was written by Laura Creighton.</li>
<li>simplified internal localpath implementation</li>
</ul>
</div>
<div class="section" id="changes-between-1-0-1-and-1-0-2">
<h2>Changes between 1.0.1 and 1.0.2<a class="headerlink" href="#changes-between-1-0-1-and-1-0-2" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>fixing packaging issues, triggered by fedora redhat packaging,
also added doc, examples and contrib dirs to the tarball.</li>
<li>added a documentation link to the new django plugin.</li>
</ul>
</div>
<div class="section" id="changes-between-1-0-0-and-1-0-1">
<h2>Changes between 1.0.0 and 1.0.1<a class="headerlink" href="#changes-between-1-0-0-and-1-0-1" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>added a &#8216;pytest_nose&#8217; plugin which handles nose.SkipTest,
nose-style function/method/generator setup/teardown and
tries to report functions correctly.</li>
<li>capturing of unicode writes or encoded strings to sys.stdout/err
work better, also terminalwriting was adapted and somewhat
unified between windows and linux.</li>
<li>improved documentation layout and content a lot</li>
<li>added a &#8220;&#8211;help-config&#8221; option to show conftest.py / ENV-var names for
all longopt cmdline options, and some special conftest.py variables.
renamed &#8216;conf_capture&#8217; conftest setting to &#8216;option_capture&#8217; accordingly.</li>
<li>fix issue #27: better reporting on non-collectable items given on commandline
(e.g. pyc files)</li>
<li>fix issue #33: added &#8211;version flag (thanks Benjamin Peterson)</li>
<li>fix issue #32: adding support for &#8220;incomplete&#8221; paths to wcpath.status()</li>
<li>&#8220;Test&#8221; prefixed classes are <em>not</em> collected by default anymore if they
have an __init__ method</li>
<li>monkeypatch setenv() now accepts a &#8220;prepend&#8221; parameter</li>
<li>improved reporting of collection error tracebacks</li>
<li>simplified multicall mechanism and plugin architecture,
renamed some internal methods and argnames</li>
</ul>
</div>
<div class="section" id="changes-between-1-0-0b9-and-1-0-0">
<h2>Changes between 1.0.0b9 and 1.0.0<a class="headerlink" href="#changes-between-1-0-0b9-and-1-0-0" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>more terse reporting try to show filesystem path relatively to current dir</li>
<li>improve xfail output a bit</li>
</ul>
</div>
<div class="section" id="changes-between-1-0-0b8-and-1-0-0b9">
<h2>Changes between 1.0.0b8 and 1.0.0b9<a class="headerlink" href="#changes-between-1-0-0b8-and-1-0-0b9" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>cleanly handle and report final teardown of test setup</li>
<li>fix svn-1.6 compat issue with py.path.svnwc().versioned()
(thanks Wouter Vanden Hove)</li>
<li>setup/teardown or collection problems now show as ERRORs
or with big &#8220;E&#8220;&#8216;s in the progress lines.  they are reported
and counted separately.</li>
<li>dist-testing: properly handle test items that get locally
collected but cannot be collected on the remote side - often
due to platform/dependency reasons</li>
<li>simplified py.test.mark API - see keyword plugin documentation</li>
<li>integrate better with logging: capturing now by default captures
test functions and their immediate setup/teardown in a single stream</li>
<li>capsys and capfd funcargs now have a readouterr() and a close() method
(underlyingly py.io.StdCapture/FD objects are used which grew a
readouterr() method as well to return snapshots of captured out/err)</li>
<li>make assert-reinterpretation work better with comparisons not
returning bools (reported with numpy from thanks maciej fijalkowski)</li>
<li>reworked per-test output capturing into the pytest_iocapture.py plugin
and thus removed capturing code from config object</li>
<li>item.repr_failure(excinfo) instead of item.repr_failure(excinfo, outerr)</li>
</ul>
</div>
<div class="section" id="changes-between-1-0-0b7-and-1-0-0b8">
<h2>Changes between 1.0.0b7 and 1.0.0b8<a class="headerlink" href="#changes-between-1-0-0b7-and-1-0-0b8" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>pytest_unittest-plugin is now enabled by default</li>
<li>introduced pytest_keyboardinterrupt hook and
refined pytest_sessionfinish hooked, added tests.</li>
<li>workaround a buggy logging module interaction (&#8220;closing already closed
files&#8221;).  Thanks to Sridhar Ratnakumar for triggering.</li>
<li>if plugins use &#8220;py.test.importorskip&#8221; for importing
a dependency only a warning will be issued instead
of exiting the testing process.</li>
<li>many improvements to docs:
- refined funcargs doc , use the term &#8220;factory&#8221; instead of &#8220;provider&#8221;
- added a new talk/tutorial doc page
- better download page
- better plugin docstrings
- added new plugins page and automatic doc generation script</li>
<li>fixed teardown problem related to partially failing funcarg setups
(thanks MrTopf for reporting), &#8220;pytest_runtest_teardown&#8221; is now
always invoked even if the &#8220;pytest_runtest_setup&#8221; failed.</li>
<li>tweaked doctest output for docstrings in py modules,
thanks Radomir.</li>
</ul>
</div>
<div class="section" id="changes-between-1-0-0b3-and-1-0-0b7">
<h2>Changes between 1.0.0b3 and 1.0.0b7<a class="headerlink" href="#changes-between-1-0-0b3-and-1-0-0b7" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>renamed py.test.xfail back to py.test.mark.xfail to avoid
two ways to decorate for xfail</li>
<li>re-added py.test.mark decorator for setting keywords on functions
(it was actually documented so removing it was not nice)</li>
<li>remove scope-argument from request.addfinalizer() because
request.cached_setup has the scope arg. TOOWTDI.</li>
<li>perform setup finalization before reporting failures</li>
<li>apply modified patches from Andreas Kloeckner to allow
test functions to have no func_code (#22) and to make
&#8220;-k&#8221; and function keywords work  (#20)</li>
<li>apply patch from Daniel Peolzleithner (issue #23)</li>
<li>resolve issue #18, multiprocessing.Manager() and
redirection clash</li>
<li>make __name__ == &#8220;__channelexec__&#8221; for remote_exec code</li>
</ul>
</div>
<div class="section" id="changes-between-1-0-0b1-and-1-0-0b3">
<h2>Changes between 1.0.0b1 and 1.0.0b3<a class="headerlink" href="#changes-between-1-0-0b1-and-1-0-0b3" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>plugin classes are removed: one now defines
hooks directly in conftest.py or global pytest_*.py
files.</li>
<li>added new pytest_namespace(config) hook that allows
to inject helpers directly to the py.test.* namespace.</li>
<li>documented and refined many hooks</li>
<li>added new style of generative tests via
pytest_generate_tests hook that integrates
well with function arguments.</li>
</ul>
</div>
<div class="section" id="changes-between-0-9-2-and-1-0-0b1">
<h2>Changes between 0.9.2 and 1.0.0b1<a class="headerlink" href="#changes-between-0-9-2-and-1-0-0b1" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>introduced new &#8220;funcarg&#8221; setup method,
see doc/test/funcarg.txt</li>
<li>introduced plugin architecuture and many
new py.test plugins, see
doc/test/plugins.txt</li>
<li>teardown_method is now guaranteed to get
called after a test method has run.</li>
<li>new method: py.test.importorskip(mod,minversion)
will either import or call py.test.skip()</li>
<li>completely revised internal py.test architecture</li>
<li>new py.process.ForkedFunc object allowing to
fork execution of a function to a sub process
and getting a result back.</li>
</ul>
<p>XXX lots of things missing here XXX</p>
</div>
<div class="section" id="changes-between-0-9-1-and-0-9-2">
<h2>Changes between 0.9.1 and 0.9.2<a class="headerlink" href="#changes-between-0-9-1-and-0-9-2" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li>refined installation and metadata, created new setup.py,
now based on setuptools/ez_setup (thanks to Ralf Schmitt
for his support).</li>
<li>improved the way of making py.* scripts available in
windows environments, they are now added to the
Scripts directory as &#8221;.cmd&#8221; files.</li>
<li>py.path.svnwc.status() now is more complete and
uses xml output from the &#8216;svn&#8217; command if available
(Guido Wesdorp)</li>
<li>fix for py.path.svn* to work with svn 1.5
(Chris Lamb)</li>
<li>fix path.relto(otherpath) method on windows to
use normcase for checking if a path is relative.</li>
<li>py.test&#8217;s traceback is better parseable from editors
(follows the filenames:LINENO: MSG convention)
(thanks to Osmo Salomaa)</li>
<li>fix to javascript-generation, &#8220;py.test &#8211;runbrowser&#8221;
should work more reliably now</li>
<li>removed previously accidentally added
py.test.broken and py.test.notimplemented helpers.</li>
<li>there now is a py.__version__ attribute</li>
</ul>
</div>
<div class="section" id="changes-between-0-9-0-and-0-9-1">
<h2>Changes between 0.9.0 and 0.9.1<a class="headerlink" href="#changes-between-0-9-0-and-0-9-1" title="Permalink to this headline">¶</a></h2>
<p>This is a fairly complete list of changes between 0.9 and 0.9.1, which can
serve as a reference for developers.</p>
<ul class="simple">
<li>allowing + signs in py.path.svn urls [39106]</li>
<li>fixed support for Failed exceptions without excinfo in py.test [39340]</li>
<li>added support for killing processes for Windows (as well as platforms that
support os.kill) in py.misc.killproc [39655]</li>
<li>added setup/teardown for generative tests to py.test [40702]</li>
<li>added detection of FAILED TO LOAD MODULE to py.test [40703, 40738, 40739]</li>
<li>fixed problem with calling .remove() on wcpaths of non-versioned files in
py.path [44248]</li>
<li>fixed some import and inheritance issues in py.test [41480, 44648, 44655]</li>
<li>fail to run greenlet tests when pypy is available, but without stackless
[45294]</li>
<li>small fixes in rsession tests [45295]</li>
<li>fixed issue with 2.5 type representations in py.test [45483, 45484]</li>
<li>made that internal reporting issues displaying is done atomically in py.test
[45518]</li>
<li>made that non-existing files are igored by the py.lookup script [45519]</li>
<li>improved exception name creation in py.test [45535]</li>
<li>made that less threads are used in execnet [merge in 45539]</li>
<li>removed lock required for atomical reporting issue displaying in py.test
[45545]</li>
<li>removed globals from execnet [45541, 45547]</li>
<li>refactored cleanup mechanics, made that setDaemon is set to 1 to make atexit
get called in 2.5 (py.execnet) [45548]</li>
<li>fixed bug in joining threads in py.execnet&#8217;s servemain [45549]</li>
<li>refactored py.test.rsession tests to not rely on exact output format anymore
[45646]</li>
<li>using repr() on test outcome [45647]</li>
<li>added &#8216;Reason&#8217; classes for py.test.skip() [45648, 45649]</li>
<li>killed some unnecessary sanity check in py.test.collect [45655]</li>
<li>avoid using os.tmpfile() in py.io.fdcapture because on Windows it&#8217;s only
usable by Administrators [45901]</li>
<li>added support for locking and non-recursive commits to py.path.svnwc [45994]</li>
<li>locking files in py.execnet to prevent CPython from segfaulting [46010]</li>
<li>added export() method to py.path.svnurl</li>
<li>fixed -d -x in py.test [47277]</li>
<li>fixed argument concatenation problem in py.path.svnwc [49423]</li>
<li>restore py.test behaviour that it exits with code 1 when there are failures
[49974]</li>
<li>don&#8217;t fail on html files that don&#8217;t have an accompanying .txt file [50606]</li>
<li>fixed &#8216;utestconvert.py &lt; input&#8217; [50645]</li>
<li>small fix for code indentation in py.code.source [50755]</li>
<li>fix _docgen.py documentation building [51285]</li>
<li>improved checks for source representation of code blocks in py.test [51292]</li>
<li>added support for passing authentication to py.path.svn* objects [52000,
52001]</li>
<li>removed sorted() call for py.apigen tests in favour of [].sort() to support
Python 2.3 [52481]</li>
</ul>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="announce/release-2.0.0.html" title="py.test 2.0.0: asserts++, unittest++, reporting++, config++, docs++"
             >previous</a></li>
        <li><a href="contents.html">pytest-2.3.4.1</a> &raquo;</li>
 
<g:plusone></g:plusone>

      </ul>
    </div>

    <div class="footer">
        &copy; Copyright 2012, holger krekel.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-7597274-13']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

  </body>
</html>