diff --git a/_pytest/terminal.py b/_pytest/terminal.py index a29ad0c5d..781562fa6 100644 --- a/_pytest/terminal.py +++ b/_pytest/terminal.py @@ -257,6 +257,9 @@ class TerminalReporter: self.write_sep("=", "test session starts", bold=True) verinfo = ".".join(map(str, sys.version_info[:3])) msg = "platform %s -- Python %s" % (sys.platform, verinfo) + if hasattr(sys, 'pypy_version_info'): + verinfo = ".".join(map(str, sys.pypy_version_info[:3])) + msg += "[pypy-%s]" % verinfo msg += " -- pytest-%s" % (py.test.__version__) if self.verbosity > 0 or self.config.option.debug or \ getattr(self.config.option, 'pastebin', None): diff --git a/doc/announce/release-2.0.0.txt b/doc/announce/release-2.0.0.txt index 00dd9d0ef..9abf24ceb 100644 --- a/doc/announce/release-2.0.0.txt +++ b/doc/announce/release-2.0.0.txt @@ -41,7 +41,7 @@ New Features - new and better reporting information in assert expressions if comparing lists, sequences or strings. - see http://pytest.org/2.0.0/assert.html for details. + see http://pytest.org/2.0.0/assert.html#newreport - new configuration through ini-files (setup.cfg or tox.ini recognized), for example:: diff --git a/doc/assert.txt b/doc/assert.txt index a24c2619f..957cb4525 100644 --- a/doc/assert.txt +++ b/doc/assert.txt @@ -84,6 +84,8 @@ asserts that the given ``ExpectedException`` is raised. The reporter will provide you with helpful output in case of failures such as *no exception* or *wrong exception*. +.. _newreport: + Making use of context-sensitive comparisons ------------------------------------------------- @@ -130,7 +132,7 @@ Special comparisons are done for a number of cases: * comparing long sequences: first failing indices * comparing dicts: different entries -See the :ref:`reporting demo ` for examples. +See the :ref:`reporting demo ` for many more examples. .. Defining your own comparison diff --git a/doc/example/reportingdemo.txt b/doc/example/reportingdemo.txt index 4f62b4e29..20b7ba729 100644 --- a/doc/example/reportingdemo.txt +++ b/doc/example/reportingdemo.txt @@ -7,7 +7,9 @@ Demo of Python failure reports with py.test Here is a nice run of several tens of failures and how py.test presents things (unfortunately not showing the nice colors here in the HTML that you -get on the terminal - we are working on that):: +get on the terminal - we are working on that): + +.. code-block:: python assertion $ py.test failure_demo.py =========================== test session starts ============================ diff --git a/pytest.py b/pytest.py index a6ee0a170..4ba2af86d 100644 --- a/pytest.py +++ b/pytest.py @@ -1,7 +1,7 @@ """ unit and functional testing with Python. """ -__version__ = '2.0.0.dev42' +__version__ = '2.0.0' __all__ = ['main'] from _pytest.core import main, UsageError, _preloadplugins diff --git a/setup.py b/setup.py index c2298edec..47318c057 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def main(): name='pytest', description='py.test: simple powerful testing with Python', long_description = long_description, - version='2.0.0.dev42', + version='2.0.0', url='http://pytest.org', license='MIT license', platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'], diff --git a/testing/test_capture.py b/testing/test_capture.py index 113bd562f..cc79f1f94 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -77,6 +77,7 @@ class TestCaptureManager: finally: capouter.reset() +@pytest.mark.xfail("hasattr(sys, 'pypy_version_info')") @pytest.mark.multi(method=['fd', 'sys']) def test_capturing_unicode(testdir, method): if sys.version_info >= (3,0):