From 9b48613baa9ee1ab4e1e233bfe956de03e89b23e Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 19 May 2017 18:12:59 -0400 Subject: [PATCH] Preparing release version 3.1.0 --- doc/en/announce/index.rst | 1 + doc/en/announce/release-3.1.0.rst | 61 +++++++++++++++++++++++++++++++ doc/en/cache.rst | 4 +- doc/en/example/parametrize.rst | 6 ++- doc/en/unittest.rst | 8 +--- doc/en/warnings.rst | 17 ++++++++- 6 files changed, 84 insertions(+), 13 deletions(-) create mode 100644 doc/en/announce/release-3.1.0.rst diff --git a/doc/en/announce/index.rst b/doc/en/announce/index.rst index 52dd90de0..5eadc9bf1 100644 --- a/doc/en/announce/index.rst +++ b/doc/en/announce/index.rst @@ -6,6 +6,7 @@ Release announcements :maxdepth: 2 + release-3.1.0 release-3.0.7 release-3.0.6 release-3.0.5 diff --git a/doc/en/announce/release-3.1.0.rst b/doc/en/announce/release-3.1.0.rst new file mode 100644 index 000000000..99cc6bdbe --- /dev/null +++ b/doc/en/announce/release-3.1.0.rst @@ -0,0 +1,61 @@ +pytest-3.1.0 +======================================= + +The pytest team is proud to announce the 3.1.0 release! + +pytest is a mature Python testing tool with more than a 1600 tests +against itself, passing on many different interpreters and platforms. + +This release contains a bugs fixes and improvements, so users are encouraged +to take a look at the CHANGELOG: + +http://doc.pytest.org/en/latest/changelog.html + +For complete documentation, please visit: + + http://docs.pytest.org + +As usual, you can upgrade from pypi via: + + pip install -U pytest + +Thanks to all who contributed to this release, among them: + +* Anthony Sottile +* Ben Lloyd +* Bruno Oliveira +* David Giese +* David Szotten +* Dmitri Pribysh +* Florian Bruhin +* Florian Schulze +* Floris Bruynooghe +* John Towler +* Jonas Obrist +* Katerina Koukiou +* Kodi Arfer +* Krzysztof Szularz +* Lev Maximov +* Loïc Estève +* Luke Murphy +* Manuel Krebber +* Matthew Duck +* Matthias Bussonnier +* Michael Howitz +* Michal Wajszczuk +* Paweł Adamczak +* Rafael Bertoldi +* Ravi Chandra +* Ronny Pfannschmidt +* Skylar Downes +* Thomas Kriechbaumer +* Vitaly Lashmanov +* Vlad Dragos +* Wheerd +* Xander Johnson +* mandeep +* reut + + +Happy testing, +The Pytest Development Team diff --git a/doc/en/cache.rst b/doc/en/cache.rst index 688b6dd04..9672562af 100644 --- a/doc/en/cache.rst +++ b/doc/en/cache.rst @@ -231,10 +231,10 @@ You can always peek at the content of the cache using the rootdir: $REGENDOC_TMPDIR, inifile: cachedir: $REGENDOC_TMPDIR/.cache ------------------------------- cache values ------------------------------- - cache/lastfailed contains: - {'test_caching.py::test_function': True} example/value contains: 42 + cache/lastfailed contains: + {'test_caching.py::test_function': True} ======= no tests ran in 0.12 seconds ======== diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index ff860d7ab..7a9992ca7 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -397,8 +397,10 @@ is to be run with different sets of arguments for its three arguments: Running it results in some skips if we don't have all the python interpreters installed and otherwise runs all combinations (5 interpreters times 5 interpreters times 3 objects to serialize/deserialize):: . $ pytest -rs -q multipython.py - ................................................ - 48 passed in 0.12 seconds + sssssssssssssss.........sss.........sss......... + ======= short test summary info ======== + SKIP [21] $REGENDOC_TMPDIR/CWD/multipython.py:23: 'python2.6' not found + 27 passed, 21 skipped in 0.12 seconds Indirect parametrization of optional implementations/imports -------------------------------------------------------------------- diff --git a/doc/en/unittest.rst b/doc/en/unittest.rst index 436e64e07..06180f19d 100644 --- a/doc/en/unittest.rst +++ b/doc/en/unittest.rst @@ -184,13 +184,7 @@ Running this test module ...:: $ pytest -q test_unittest_cleandir.py . - ======= warnings summary ======== - test_unittest_cleandir.py::MyTest::test_method - $REGENDOC_TMPDIR/test_unittest_cleandir.py:11: ResourceWarning: unclosed file <_io.TextIOWrapper name='samplefile.ini' mode='r' encoding='UTF-8'> - s = open("samplefile.ini").read() - - -- Docs: http://doc.pytest.org/en/latest/warnings.html - 1 passed, 1 warnings in 0.12 seconds + 1 passed in 0.12 seconds ... gives us one passed test because the ``initdir`` fixture function was executed ahead of the ``test_method``. diff --git a/doc/en/warnings.rst b/doc/en/warnings.rst index 64316cf6b..1766f997c 100644 --- a/doc/en/warnings.rst +++ b/doc/en/warnings.rst @@ -40,9 +40,22 @@ The ``-W`` flag can be passed to control which warnings will be displayed or eve them into errors:: $ pytest -q test_show_warnings.py -W error::DeprecationWarning + F + ======= FAILURES ======== + _______ test_one ________ - no tests ran in 0.12 seconds - ERROR: file not found: test_show_warning.py + def test_one(): + > assert deprecated_function() == 1 + + test_show_warnings.py:8: + _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + + def deprecated_function(): + > warnings.warn("this function is deprecated, use another_function()", DeprecationWarning) + E DeprecationWarning: this function is deprecated, use another_function() + + test_show_warnings.py:4: DeprecationWarning + 1 failed in 0.12 seconds The same option can be set in the ``pytest.ini`` file using the ``filterwarnings`` ini option. For example, the configuration below will ignore all deprecation warnings, but will transform