[Python-modules-commits] [pytest] 01/09: Import pytest_2.9.1.orig.tar.gz
Sebastian Ramacher
sramacher at moszumanska.debian.org
Mon Mar 21 12:59:32 UTC 2016
This is an automated email from the git hooks/post-receive script.
sramacher pushed a commit to branch master
in repository pytest.
commit 486160d18e6f34e6c9f96456b537ac08f8aba0fc
Author: Sebastian Ramacher <sebastian at ramacher.at>
Date: Mon Mar 21 13:48:36 2016 +0100
Import pytest_2.9.1.orig.tar.gz
---
AUTHORS | 10 +
CHANGELOG => CHANGELOG.rst | 391 ++++++++-----
CONTRIBUTING.rst | 142 +++--
LICENSE | 36 +-
MANIFEST.in | 2 +-
PKG-INFO | 9 +-
README.rst | 7 +-
_pytest/__init__.py | 2 +-
_pytest/_argcomplete.py | 3 -
_pytest/_code/__init__.py | 12 +
_pytest/_code/_py2traceback.py | 81 +++
_pytest/_code/code.py | 795 +++++++++++++++++++++++++++
_pytest/_code/source.py | 421 ++++++++++++++
_pytest/assertion/__init__.py | 13 +-
_pytest/assertion/newinterpret.py | 365 -------------
_pytest/assertion/oldinterpret.py | 566 -------------------
_pytest/assertion/reinterpret.py | 369 ++++++++++++-
_pytest/assertion/rewrite.py | 5 +
_pytest/assertion/util.py | 21 +-
_pytest/cacheprovider.py | 8 +-
_pytest/config.py | 73 ++-
_pytest/doctest.py | 84 ++-
_pytest/hookspec.py | 22 +-
_pytest/junitxml.py | 29 +-
_pytest/main.py | 15 +-
_pytest/mark.py | 2 +-
_pytest/pdb.py | 3 +-
_pytest/pytester.py | 23 +-
_pytest/python.py | 79 +--
_pytest/recwarn.py | 16 +-
_pytest/runner.py | 18 +-
_pytest/skipping.py | 65 ++-
_pytest/terminal.py | 24 +-
_pytest/unittest.py | 11 +-
doc/en/_templates/globaltoc.html | 1 +
doc/en/_templates/layout.html | 16 +
doc/en/_templates/links.html | 5 +
doc/en/announce/index.rst | 3 +
doc/en/announce/release-2.9.0.rst | 159 ++++++
doc/en/announce/release-2.9.1.rst | 65 +++
doc/en/announce/sprint2016.rst | 105 ++++
doc/en/assert.rst | 16 +-
doc/en/cache.rst | 12 +-
doc/en/capture.rst | 2 +-
doc/en/changelog.rst | 2 +-
doc/en/contents.rst | 7 +-
doc/en/doctest.rst | 34 +-
doc/en/example/assertion/failure_demo.py | 3 +-
doc/en/example/markers.rst | 32 +-
doc/en/example/multipython.py | 5 +-
doc/en/example/nonpython.rst | 6 +-
doc/en/example/parametrize.rst | 19 +-
doc/en/example/pythoncollection.rst | 6 +-
doc/en/example/reportingdemo.rst | 102 ++--
doc/en/example/simple.rst | 28 +-
doc/en/faq.rst | 5 +-
doc/en/fixture.rst | 10 +-
doc/en/getting-started.rst | 4 +-
doc/en/img/freiburg2.jpg | Bin 0 -> 104057 bytes
doc/en/index.rst | 1 +
doc/en/license.rst | 32 ++
doc/en/parametrize.rst | 8 +-
doc/en/recwarn.rst | 6 +
doc/en/skipping.rst | 153 ++++--
doc/en/talks.rst | 5 +-
doc/en/test/plugin/xdist.rst | 4 +-
doc/en/tmpdir.rst | 2 +-
doc/en/unittest.rst | 2 +-
doc/en/usage.rst | 12 +-
doc/en/writing_plugins.rst | 4 +-
doc/en/xdist.rst | 10 +-
pytest.egg-info/PKG-INFO | 9 +-
pytest.egg-info/SOURCES.txt | 16 +-
pytest.egg-info/entry_points.txt | 2 +-
pytest.egg-info/requires.txt | 6 +-
setup.py | 2 +-
testing/acceptance_test.py | 24 +-
testing/code/test_code.py | 174 ++++++
testing/code/test_excinfo.py | 911 +++++++++++++++++++++++++++++++
testing/code/test_source.py | 659 ++++++++++++++++++++++
testing/python/collect.py | 117 +++-
testing/python/fixture.py | 32 +-
testing/python/integration.py | 3 +-
testing/python/metafunc.py | 13 +-
testing/python/raises.py | 9 +-
testing/test_argcomplete.py | 4 -
testing/test_assertinterpret.py | 83 +--
testing/test_assertion.py | 27 +-
testing/test_assertrewrite.py | 20 +-
testing/test_cache.py | 43 +-
testing/test_capture.py | 5 +-
testing/test_config.py | 83 ++-
testing/test_conftest.py | 17 +-
testing/test_doctest.py | 85 ++-
testing/test_junitxml.py | 56 +-
testing/test_mark.py | 18 +-
testing/test_nose.py | 1 -
testing/test_parseopt.py | 6 -
testing/test_pdb.py | 13 +-
testing/test_pluginmanager.py | 8 +-
testing/test_recwarn.py | 10 +
testing/test_resultlog.py | 10 +-
testing/test_runner.py | 64 ++-
testing/test_skipping.py | 174 +++++-
testing/test_terminal.py | 70 ++-
testing/test_unittest.py | 3 +-
tox.ini | 11 +-
107 files changed, 5667 insertions(+), 1729 deletions(-)
diff --git a/AUTHORS b/AUTHORS
index 7b22002..dfc0a54 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -10,6 +10,7 @@ Andy Freeland
Anthon van der Neut
Armin Rigo
Aron Curzon
+Aviv Palivoda
Benjamin Peterson
Bob Ippolito
Brian Dorsey
@@ -23,11 +24,14 @@ Christian Theunert
Christian Tismer
Christopher Gilling
Daniel Grana
+Daniel Hahler
Daniel Nuri
Dave Hunt
David Mohr
+David Vierra
Edison Gustavo Muenz
Eduardo Schettino
+Endre Galaczi
Elizaveta Shashkova
Eric Hunsberger
Eric Siegerman
@@ -45,16 +49,20 @@ Jaap Broekhuizen
Jan Balster
Janne Vanhala
Jason R. Coombs
+Joshua Bronson
Jurko Gospodnetić
Katarzyna Jachim
Kevin Cox
Lee Kamentsky
+Lukas Bednar
Maciek Fijalkowski
Maho
Marc Schlaich
Mark Abramowitz
Markus Unterwaditzer
Martijn Faassen
+Matt Bachmann
+Michael Aquilina
Michael Birtwell
Michael Droettboom
Nicolas Delaby
@@ -62,8 +70,10 @@ Pieter Mulder
Piotr Banaszkiewicz
Punyashloka Biswal
Ralf Schmitt
+Raphael Pierzina
Ronny Pfannschmidt
Ross Lawley
+Ryan Wooden
Samuele Pedroni
Tom Viner
Trevor Bekolay
diff --git a/CHANGELOG b/CHANGELOG.rst
similarity index 92%
rename from CHANGELOG
rename to CHANGELOG.rst
index b3f7978..f18f646 100644
--- a/CHANGELOG
+++ b/CHANGELOG.rst
@@ -1,10 +1,162 @@
+2.9.1
+=====
+
+**Bug Fixes**
+
+* Improve error message when a plugin fails to load.
+ Thanks `@nicoddemus`_ for the PR.
+
+* Fix (`#1178 <https://github.com/pytest-dev/pytest/issues/1178>`_):
+ ``pytest.fail`` with non-ascii characters raises an internal pytest error.
+ Thanks `@nicoddemus`_ for the PR.
+
+* Fix (`#469`_): junit parses report.nodeid incorrectly, when params IDs
+ contain ``::``. Thanks `@tomviner`_ for the PR (`#1431`_).
+
+* Fix (`#578 <https://github.com/pytest-dev/pytest/issues/578>`_): SyntaxErrors
+ containing non-ascii lines at the point of failure generated an internal
+ py.test error.
+ Thanks `@asottile`_ for the report and `@nicoddemus`_ for the PR.
+
+* Fix (`#1437`_): When passing in a bytestring regex pattern to parameterize
+ attempt to decode it as utf-8 ignoring errors.
+
+* Fix (`#649`_): parametrized test nodes cannot be specified to run on the command line.
+
+
+.. _#1437: https://github.com/pytest-dev/pytest/issues/1437
+.. _#469: https://github.com/pytest-dev/pytest/issues/469
+.. _#1431: https://github.com/pytest-dev/pytest/pull/1431
+.. _#649: https://github.com/pytest-dev/pytest/issues/649
+
+.. _ at asottile: https://github.com/asottile
+
+
+2.9.0
+=====
+
+**New Features**
+
+* New ``pytest.mark.skip`` mark, which unconditionally skips marked tests.
+ Thanks `@MichaelAquilina`_ for the complete PR (`#1040`_).
+
+* ``--doctest-glob`` may now be passed multiple times in the command-line.
+ Thanks `@jab`_ and `@nicoddemus`_ for the PR.
+
+* New ``-rp`` and ``-rP`` reporting options give the summary and full output
+ of passing tests, respectively. Thanks to `@codewarrior0`_ for the PR.
+
+* ``pytest.mark.xfail`` now has a ``strict`` option, which makes ``XPASS``
+ tests to fail the test suite (defaulting to ``False``). There's also a
+ ``xfail_strict`` ini option that can be used to configure it project-wise.
+ Thanks `@rabbbit`_ for the request and `@nicoddemus`_ for the PR (`#1355`_).
+
+* ``Parser.addini`` now supports options of type ``bool``.
+ Thanks `@nicoddemus`_ for the PR.
+
+* New ``ALLOW_BYTES`` doctest option. This strips ``b`` prefixes from byte strings
+ in doctest output (similar to ``ALLOW_UNICODE``).
+ Thanks `@jaraco`_ for the request and `@nicoddemus`_ for the PR (`#1287`_).
+
+* Give a hint on ``KeyboardInterrupt`` to use the ``--fulltrace`` option to show the errors.
+ Fixes `#1366`_.
+ Thanks to `@hpk42`_ for the report and `@RonnyPfannschmidt`_ for the PR.
+
+* Catch ``IndexError`` exceptions when getting exception source location.
+ Fixes a pytest internal error for dynamically generated code (fixtures and tests)
+ where source lines are fake by intention.
+
+**Changes**
+
+* **Important**: `py.code <http://pylib.readthedocs.org/en/latest/code.html>`_ has been
+ merged into the ``pytest`` repository as ``pytest._code``. This decision
+ was made because ``py.code`` had very few uses outside ``pytest`` and the
+ fact that it was in a different repository made it difficult to fix bugs on
+ its code in a timely manner. The team hopes with this to be able to better
+ refactor out and improve that code.
+ This change shouldn't affect users, but it is useful to let users aware
+ if they encounter any strange behavior.
+
+ Keep in mind that the code for ``pytest._code`` is **private** and
+ **experimental**, so you definitely should not import it explicitly!
+
+ Please note that the original ``py.code`` is still available in
+ `pylib <http://pylib.readthedocs.org>`_.
+
+* ``pytest_enter_pdb`` now optionally receives the pytest config object.
+ Thanks `@nicoddemus`_ for the PR.
+
+* Removed code and documentation for Python 2.5 or lower versions,
+ including removal of the obsolete ``_pytest.assertion.oldinterpret`` module.
+ Thanks `@nicoddemus`_ for the PR (`#1226`_).
+
+* Comparisons now always show up in full when ``CI`` or ``BUILD_NUMBER`` is
+ found in the environment, even when ``-vv`` isn't used.
+ Thanks `@The-Compiler`_ for the PR.
+
+* ``--lf`` and ``--ff`` now support long names: ``--last-failed`` and
+ ``--failed-first`` respectively.
+ Thanks `@MichaelAquilina`_ for the PR.
+
+* Added expected exceptions to ``pytest.raises`` fail message.
+
+* Collection only displays progress ("collecting X items") when in a terminal.
+ This avoids cluttering the output when using ``--color=yes`` to obtain
+ colors in CI integrations systems (`#1397`_).
+
+**Bug Fixes**
+
+* The ``-s`` and ``-c`` options should now work under ``xdist``;
+ ``Config.fromdictargs`` now represents its input much more faithfully.
+ Thanks to `@bukzor`_ for the complete PR (`#680`_).
+
+* Fix (`#1290`_): support Python 3.5's ``@`` operator in assertion rewriting.
+ Thanks `@Shinkenjoe`_ for report with test case and `@tomviner`_ for the PR.
+
+* Fix formatting utf-8 explanation messages (`#1379`_).
+ Thanks `@biern`_ for the PR.
+
+* Fix `traceback style docs`_ to describe all of the available options
+ (auto/long/short/line/native/no), with `auto` being the default since v2.6.
+ Thanks `@hackebrot`_ for the PR.
+
+* Fix (`#1422`_): junit record_xml_property doesn't allow multiple records
+ with same name.
+
+.. _`traceback style docs`: https://pytest.org/latest/usage.html#modifying-python-traceback-printing
+
+.. _#1422: https://github.com/pytest-dev/pytest/issues/1422
+.. _#1379: https://github.com/pytest-dev/pytest/issues/1379
+.. _#1366: https://github.com/pytest-dev/pytest/issues/1366
+.. _#1040: https://github.com/pytest-dev/pytest/pull/1040
+.. _#680: https://github.com/pytest-dev/pytest/issues/680
+.. _#1287: https://github.com/pytest-dev/pytest/pull/1287
+.. _#1226: https://github.com/pytest-dev/pytest/pull/1226
+.. _#1290: https://github.com/pytest-dev/pytest/pull/1290
+.. _#1355: https://github.com/pytest-dev/pytest/pull/1355
+.. _#1397: https://github.com/pytest-dev/pytest/issues/1397
+.. _ at biern: https://github.com/biern
+.. _ at MichaelAquilina: https://github.com/MichaelAquilina
+.. _ at bukzor: https://github.com/bukzor
+.. _ at hpk42: https://github.com/hpk42
+.. _ at nicoddemus: https://github.com/nicoddemus
+.. _ at jab: https://github.com/jab
+.. _ at codewarrior0: https://github.com/codewarrior0
+.. _ at jaraco: https://github.com/jaraco
+.. _ at The-Compiler: https://github.com/The-Compiler
+.. _ at Shinkenjoe: https://github.com/Shinkenjoe
+.. _ at tomviner: https://github.com/tomviner
+.. _ at RonnyPfannschmidt: https://github.com/RonnyPfannschmidt
+.. _ at rabbbit: https://github.com/rabbbit
+.. _ at hackebrot: https://github.com/hackebrot
+
2.8.7
-----------
+=====
- fix #1338: use predictable object resolution for monkeypatch
2.8.6
------
+=====
- fix #1259: allow for double nodeids in junitxml,
this was a regression failing plugins combinations
@@ -36,7 +188,7 @@
2.8.5
------
+=====
- fix #1243: fixed issue where class attributes injected during collection could break pytest.
PR by Alexei Kozlenok, thanks Ronny Pfannschmidt and Bruno Oliveira for the review and help.
@@ -50,7 +202,7 @@
2.8.4
------
+=====
- fix #1190: ``deprecated_call()`` now works when the deprecated
function has been already called by another test in the same
@@ -74,7 +226,7 @@
Thanks Bruno Oliveira for the PR.
2.8.3
------
+=====
- fix #1169: add __name__ attribute to testcases in TestCaseFunction to
support the @unittest.skip decorator on functions and methods.
@@ -101,10 +253,8 @@
system integrity protection (thanks Florian)
-
-
2.8.2
------
+=====
- fix #1085: proper handling of encoding errors when passing encoded byte
strings to pytest.parametrize in Python 2.
@@ -124,7 +274,7 @@
Oliveira for the PR.
2.8.1
------
+=====
- fix #1034: Add missing nodeid on pytest_logwarning call in
addhook. Thanks Simon Gomizelj for the PR.
@@ -163,6 +313,7 @@
- Fix issue #411: Add __eq__ method to assertion comparison example.
Thanks Ben Webb.
+- Fix issue #653: deprecated_call can be used as context manager.
- fix issue 877: properly handle assertion explanations with non-ascii repr
Thanks Mathieu Agopian for the report and Ronny Pfannschmidt for the PR.
@@ -170,7 +321,7 @@
- fix issue 1029: transform errors when writing cache values into pytest-warnings
2.8.0
------------------------------
+=====
- new ``--lf`` and ``-ff`` options to run only the last failing tests or
"failing tests first" from the last run. This functionality is provided
@@ -227,10 +378,10 @@
- fix issue768: docstrings found in python modules were not setting up session
fixtures. Thanks Jason R. Coombs for reporting and Bruno Oliveira for the PR.
-- added `tmpdir_factory`, a session-scoped fixture that can be used to create
+- added ``tmpdir_factory``, a session-scoped fixture that can be used to create
directories under the base temporary directory. Previously this object was
- installed as a `_tmpdirhandler` attribute of the `config` object, but now it
- is part of the official API and using `config._tmpdirhandler` is
+ installed as a ``_tmpdirhandler`` attribute of the ``config`` object, but now it
+ is part of the official API and using ``config._tmpdirhandler`` is
deprecated.
Thanks Bruno Oliveira for the PR.
@@ -259,7 +410,7 @@
or no tests were run at all (related to issue500).
Thanks Eric Siegerman.
-- New `testpaths` ini option: list of directories to search for tests
+- New ``testpaths`` ini option: list of directories to search for tests
when executing pytest from the root directory. This can be used
to speed up test collection when a project has well specified directories
for tests, being usually more practical than configuring norecursedirs for
@@ -355,20 +506,20 @@
- issue951: add new record_xml_property fixture, that supports logging
additional information on xml output. Thanks David Diaz for the PR.
-- issue949: paths after normal options (for example `-s`, `-v`, etc) are now
- properly used to discover `rootdir` and `ini` files.
+- issue949: paths after normal options (for example ``-s``, ``-v``, etc) are now
+ properly used to discover ``rootdir`` and ``ini`` files.
Thanks Peter Lauri for the report and Bruno Oliveira for the PR.
2.7.3 (compared to 2.7.2)
------------------------------
+=============================
-- Allow 'dev', 'rc', or other non-integer version strings in `importorskip`.
+- Allow 'dev', 'rc', or other non-integer version strings in ``importorskip``.
Thanks to Eric Hunsberger for the PR.
- fix issue856: consider --color parameter in all outputs (for example
--fixtures). Thanks Barney Gale for the report and Bruno Oliveira for the PR.
-- fix issue855: passing str objects as `plugins` argument to pytest.main
+- fix issue855: passing str objects as ``plugins`` argument to pytest.main
is now interpreted as a module name to be imported and registered as a
plugin, instead of silently having no effect.
Thanks xmo-odoo for the report and Bruno Oliveira for the PR.
@@ -403,7 +554,7 @@
Thanks Bruno Oliveira for the PR.
2.7.2 (compared to 2.7.1)
------------------------------
+=============================
- fix issue767: pytest.raises value attribute does not contain the exception
instance on Python 2.6. Thanks Eric Siegerman for providing the test
@@ -432,7 +583,7 @@
2.7.1 (compared to 2.7.0)
------------------------------
+=============================
- fix issue731: do not get confused by the braces which may be present
and unbalanced in an object's repr while collapsing False
@@ -465,7 +616,7 @@
at least by pytest-xdist.
2.7.0 (compared to 2.6.4)
------------------------------
+=============================
- fix issue435: make reload() work when assert rewriting is active.
Thanks Daniel Hahler.
@@ -524,7 +675,7 @@
it from the "decorator" case. Thanks Tom Viner.
- "python_classes" and "python_functions" options now support glob-patterns
- for test discovery, as discussed in issue600. Thanks Ldiary Translations.
+ for test discovery, as discussed in issue600. Thanks Ldiary Translations.
- allow to override parametrized fixtures with non-parametrized ones and vice versa (bubenkoff).
@@ -535,7 +686,7 @@
via postmortem debugging (almarklein).
2.6.4
-----------
+=====
- Improve assertion failure reporting on iterables, by using ndiff and
pprint.
@@ -564,7 +715,7 @@
- fix issue614: fixed pastebin support.
2.6.3
------------
+=====
- fix issue575: xunit-xml was reporting collection errors as failures
instead of errors, thanks Oleg Sinyavskiy.
@@ -591,7 +742,7 @@
Floris Bruynooghe.
2.6.2
------------
+=====
- Added function pytest.freeze_includes(), which makes it easy to embed
pytest into executables using tools like cx_freeze.
@@ -620,7 +771,7 @@
to them.
2.6.1
------------------------------------
+=====
- No longer show line numbers in the --verbose output, the output is now
purely the nodeid. The line number is still shown in failure reports.
@@ -652,7 +803,7 @@
Thanks Bruno Oliveira.
2.6
------------------------------------
+===
- Cache exceptions from fixtures according to their scope (issue 467).
@@ -757,7 +908,7 @@
2.5.2
------------------------------------
+=====
- fix issue409 -- better interoperate with cx_freeze by not
trying to import from collections.abc which causes problems
@@ -785,7 +936,7 @@
2.5.1
------------------------------------
+=====
- merge new documentation styling PR from Tobias Bieniek.
@@ -806,7 +957,7 @@
2.5.0
------------------------------------
+=====
- dropped python2.5 from automated release testing of pytest itself
which means it's probably going to break soon (but still works
@@ -941,8 +1092,8 @@
- fix verbose reporting for @mock'd test functions
-v2.4.2
------------------------------------
+2.4.2
+=====
- on Windows require colorama and a newer py lib so that py.io.TerminalWriter()
now uses colorama instead of its own ctypes hacks. (fixes issue365)
@@ -972,8 +1123,8 @@ v2.4.2
- add pluginmanager.do_configure(config) as a link to
config.do_configure() for plugin-compatibility
-v2.4.1
------------------------------------
+2.4.1
+=====
- When using parser.addoption() unicode arguments to the
"type" keyword should also be converted to the respective types.
@@ -988,8 +1139,8 @@ v2.4.1
- merge doc typo fixes, thanks Andy Dirnberger
-v2.4
------------------------------------
+2.4
+===
known incompatibilities:
@@ -1157,8 +1308,8 @@ Bug fixes:
".section(title)" and ".line(msg)" methods to print extra
information at the end of a test run.
-v2.3.5
------------------------------------
+2.3.5
+=====
- fix issue169: respect --tb=style with setup/teardown errors as well.
@@ -1222,8 +1373,8 @@ v2.3.5
- fix issue266 - accept unicode in MarkEvaluator expressions
-v2.3.4
------------------------------------
+2.3.4
+=====
- yielded test functions will now have autouse-fixtures active but
cannot accept fixtures as funcargs - it's anyway recommended to
@@ -1242,8 +1393,8 @@ v2.3.4
need to write as -k "TestClass and test_method" to match a certain
method in a certain test class.
-v2.3.3
------------------------------------
+2.3.3
+=====
- fix issue214 - parse modules that contain special objects like e. g.
flask's request object which blows up on getattr access if no request
@@ -1274,8 +1425,8 @@ v2.3.3
- fix issue127 - improve documentation for pytest_addoption() and
add a ``config.getoption(name)`` helper function for consistency.
-v2.3.2
------------------------------------
+2.3.2
+=====
- fix issue208 and fix issue29 use new py version to avoid long pauses
when printing tracebacks in long modules
@@ -1307,8 +1458,8 @@ v2.3.2
- add tox.ini to pytest distribution so that ignore-dirs and others config
bits are properly distributed for maintainers who run pytest-own tests
-v2.3.1
------------------------------------
+2.3.1
+=====
- fix issue202 - fix regression: using "self" from fixture functions now
works as expected (it's the same "self" instance that a test method
@@ -1320,8 +1471,8 @@ v2.3.1
- link to web pages from --markers output which provides help for
pytest.mark.* usage.
-v2.3.0
------------------------------------
+2.3.0
+=====
- fix issue202 - better automatic names for parametrized test functions
- fix issue139 - introduce @pytest.fixture which allows direct scoping
@@ -1399,8 +1550,8 @@ v2.3.0
- py.test -vv will show all of assert comparisations instead of truncating
-v2.2.4
------------------------------------
+2.2.4
+=====
- fix error message for rewritten assertions involving the % operator
- fix issue 126: correctly match all invalid xml characters for junitxml
@@ -1416,13 +1567,13 @@ v2.2.4
- fix issue #144: better mangle test ids to junitxml classnames
- upgrade distribute_setup.py to 0.6.27
-v2.2.3
-----------------------------------------
+2.2.3
+=====
- fix uploaded package to only include neccesary files
-v2.2.2
-----------------------------------------
+2.2.2
+=====
- fix issue101: wrong args to unittest.TestCase test function now
produce better output
@@ -1441,8 +1592,8 @@ v2.2.2
- allow adding of attributes to test reports such that it also works
with distributed testing (no upgrade of pytest-xdist needed)
-v2.2.1
-----------------------------------------
+2.2.1
+=====
- fix issue99 (in pytest and py) internallerrors with resultlog now
produce better output - fixed by normalizing pytest_internalerror
@@ -1458,8 +1609,8 @@ v2.2.1
- fix collection crash due to unknown-source collected items, thanks
to Ralf Schmitt (fixed by depending on a more recent pylib)
-v2.2.0
-----------------------------------------
+2.2.0
+=====
- fix issue90: introduce eager tearing down of test items so that
teardown function are called earlier.
@@ -1493,8 +1644,8 @@ v2.2.0
- simplify junitxml output code by relying on py.xml
- add support for skip properties on unittest classes and functions
-v2.1.3
-----------------------------------------
+2.1.3
+=====
- fix issue79: assertion rewriting failed on some comparisons in boolops
- correctly handle zero length arguments (a la pytest '')
@@ -1502,8 +1653,8 @@ v2.1.3
- fix issue75 / skipping test failure on jython
- fix issue77 / Allow assertrepr_compare hook to apply to a subset of tests
-v2.1.2
-----------------------------------------
+2.1.2
+=====
- fix assertion rewriting on files with windows newlines on some Python versions
- refine test discovery by package/module name (--pyargs), thanks Florian Mayer
@@ -1512,8 +1663,8 @@ v2.1.2
- fix issue66: use different assertion rewriting caches when the -O option is passed
- don't try assertion rewriting on Jython, use reinterp
-v2.1.1
-----------------------------------------------
+2.1.1
+=====
- fix issue64 / pytest.set_trace now works within pytest_generate_tests hooks
- fix issue60 / fix error conditions involving the creation of __pycache__
@@ -1525,8 +1676,8 @@ v2.1.1
- fix issue61: assertion rewriting on boolean operations with 3 or more operands
- you can now build a man page with "cd doc ; make man"
-v2.1.0
-----------------------------------------------
+2.1.0
+=====
- fix issue53 call nosestyle setup functions with correct ordering
- fix issue58 and issue59: new assertion code fixes
@@ -1545,8 +1696,8 @@ v2.1.0
- report KeyboardInterrupt even if interrupted during session startup
- fix issue 35 - provide PDF doc version and download link from index page
-v2.0.3
-----------------------------------------------
+2.0.3
+=====
- fix issue38: nicer tracebacks on calls to hooks, particularly early
configure/sessionstart ones
@@ -1565,8 +1716,8 @@ v2.0.3
- fix issue37: avoid invalid characters in junitxml's output
-v2.0.2
-----------------------------------------------
+2.0.2
+=====
- tackle issue32 - speed up test runs of very quick test functions
by reducing the relative overhead
@@ -1617,8 +1768,8 @@ v2.0.2
- avoid std unittest assertion helper code in tracebacks (thanks Ronny)
-v2.0.1
-----------------------------------------------
+2.0.1
+=====
- refine and unify initial capturing so that it works nicely
even if the logging module is used on an early-loaded conftest.py
@@ -1666,8 +1817,8 @@ v2.0.1
parametraization remains the "pytest_generate_tests"
mechanism, see the docs.
-v2.0.0
-----------------------------------------------
+2.0.0
+=====
- pytest-2.0 is now its own package and depends on pylib-2.0
- new ability: python -m pytest / python -m pytest.main ability
@@ -1711,8 +1862,8 @@ v2.0.0
- add ability to use "class" level for cached_setup helper
- fix strangeness: mark.* objects are now immutable, create new instances
-v1.3.4
-----------------------------------------------
+1.3.4
+=====
- fix issue111: improve install documentation for windows
- fix issue119: fix custom collectability of __init__.py as a module
@@ -1720,8 +1871,8 @@ v1.3.4
- fix issue115: unify internal exception passthrough/catching/GeneratorExit
- fix issue118: new --tb=native for presenting cpython-standard exceptions
-v1.3.3
-----------------------------------------------
+1.3.3
+=====
- fix issue113: assertion representation problem with triple-quoted strings
(and possibly other cases)
@@ -1735,11 +1886,10 @@ v1.3.3
(thanks Armin Ronacher for reporting)
- remove trailing whitespace in all py/text distribution files
-v1.3.2
-----------------------------------------------
+1.3.2
+=====
-New features
-++++++++++++++++++
+**New features**
- fix issue103: introduce py.test.raises as context manager, examples::
@@ -1774,8 +1924,7 @@ New features
- introduce '--junitprefix=STR' option to prepend a prefix
to all reports in the junitxml file.
-Bug fixes / Maintenance
-++++++++++++++++++++++++++
+**Bug fixes**
- make tests and the ``pytest_recwarn`` plugin in particular fully compatible
to Python2.7 (if you use the ``recwarn`` funcarg warnings will be enabled so that
@@ -1810,11 +1959,10 @@ Bug fixes / Maintenance
- fix homedir detection on Windows
- ship distribute_setup.py version 0.6.13
-v1.3.1
----------------------------------------------
+1.3.1
+=====
-New features
-++++++++++++++++++
+**New features**
- issue91: introduce new py.test.xfail(reason) helper
to imperatively mark a test as expected to fail. Can
@@ -1852,8 +2000,7 @@ New features
course requires that your application and tests are properly teared
down and don't have global state.
-Fixes / Maintenance
-++++++++++++++++++++++
+**Bug Fixes**
- improved traceback presentation:
- improved and unified reporting for "--tb=short" option
@@ -1882,8 +2029,8 @@ Fixes / Maintenance
(and internally be more careful when presenting unexpected byte sequences)
-v1.3.0
----------------------------------------------
+1.3.0
+=====
- deprecate --report option in favour of a new shorter and easier to
remember -r option: it takes a string argument consisting of any
@@ -1947,8 +2094,8 @@ v1.3.0
- added links to the new capturelog and coverage plugins
-v1.2.0
----------------------------------------------
+1.2.0
+=====
- refined usage and options for "py.cleanup"::
@@ -1986,8 +2133,8 @@ v1.2.0
- fix plugin links
-v1.1.1
----------------------------------------------
+1.1.1
+=====
- moved dist/looponfailing from py.test core into a new
separately released pytest-xdist plugin.
@@ -2007,7 +2154,7 @@ v1.1.1
- new funcarg: "pytestconfig" is the pytest config object for access
to command line args and can now be easily used in a test.
-- install 'py.test' and `py.which` with a ``-$VERSION`` suffix to
+- install ``py.test`` and ``py.which`` with a ``-$VERSION`` suffix to
disambiguate between Python3, python2.X, Jython and PyPy installed versions.
- new "pytestconfig" funcarg allows access to test config object
@@ -2070,8 +2217,8 @@ v1.1.1
- fix docs, fix internal bin/ script generation
-v1.1.0
----------------------------------------------
+1.1.0
+=====
- introduce automatic plugin registration via 'pytest11'
entrypoints via setuptools' pkg_resources.iter_entry_points
@@ -2089,8 +2236,8 @@ v1.1.0
- try harder to have deprecation warnings for py.compat.* accesses
report a correct location
-v1.0.2
----------------------------------------------
+1.0.3
+=====
* adjust and improve docs
@@ -2174,16 +2321,16 @@ v1.0.2
* simplified internal localpath implementation
-v1.0.2
--------------------------------------------
+1.0.2
+=====
* fixing packaging issues, triggered by fedora redhat packaging,
also added doc, examples and contrib dirs to the tarball.
* added a documentation link to the new django plugin.
-v1.0.1
--------------------------------------------
+1.0.1
+=====
* added a 'pytest_nose' plugin which handles nose.SkipTest,
nose-style function/method/generator setup/teardown and
@@ -2216,14 +2363,14 @@ v1.0.1
* simplified multicall mechanism and plugin architecture,
renamed some internal methods and argnames
-v1.0.0
--------------------------------------------
+1.0.0
+=====
* more terse reporting try to show filesystem path relatively to current dir
* improve xfail output a bit
-v1.0.0b9
--------------------------------------------
+1.0.0b9
+=======
* cleanly handle and report final teardown of test setup
@@ -2256,8 +2403,8 @@ v1.0.0b9
* item.repr_failure(excinfo) instead of item.repr_failure(excinfo, outerr)
-v1.0.0b8
--------------------------------------------
+1.0.0b8
+=======
* pytest_unittest-plugin is now enabled by default
@@ -2285,8 +2432,8 @@ v1.0.0b8
* tweaked doctest output for docstrings in py modules,
thanks Radomir.
-v1.0.0b7
--------------------------------------------
+1.0.0b7
... 10556 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pytest.git
More information about the Python-modules-commits
mailing list