1 new commit in pytest: https://bitbucket.org/hpk42/pytest/commits/dea7f0ad9330/ Changeset: dea7f0ad9330 User: hpk42 Date: 2014-09-02 12:20:16 Summary: fix issue572 - python3 compat of tmpdir example in docs. Affected #: 3 files
diff -r 570b7b6fd39fe56ca66d82dd8e3b533c5b4db105 -r dea7f0ad9330de94194522ea51bf686f2f8e0ef7 CHANGELOG --- a/CHANGELOG +++ b/CHANGELOG @@ -10,6 +10,8 @@ - Fix example in monkeypatch documentation, thanks t-8ch. +- fix issue572: correct tmpdir doc example for python3. + - Do not mark as universal wheel because Python 2.6 is different from other builds due to the extra argparse dependency. Fixes issue566. Thanks sontek. diff -r 570b7b6fd39fe56ca66d82dd8e3b533c5b4db105 -r dea7f0ad9330de94194522ea51bf686f2f8e0ef7 doc/en/getting-started.txt --- a/doc/en/getting-started.txt +++ b/doc/en/getting-started.txt @@ -51,17 +51,17 @@ =========================== test session starts ============================ platform linux -- Python 3.4.0 -- py-1.4.23 -- pytest-2.6.1 collected 1 items - + test_sample.py F - + ================================= FAILURES ================================= _______________________________ test_answer ________________________________ - + def test_answer(): > assert func(3) == 5 E assert 4 == 5 E + where 4 = func(3) - + test_sample.py:5: AssertionError ========================= 1 failed in 0.01 seconds ========================= @@ -126,14 +126,14 @@ .F ================================= FAILURES ================================= ____________________________ TestClass.test_two ____________________________ - + self = <test_class.TestClass object at 0x2ad4b005b710> - + def test_two(self): x = "hello" > assert hasattr(x, 'check') E assert hasattr('hello', 'check') - + test_class.py:8: AssertionError 1 failed, 1 passed in 0.01 seconds @@ -151,7 +151,7 @@ # content of test_tmpdir.py def test_needsfiles(tmpdir): - print tmpdir + print (tmpdir) assert 0 We list the name ``tmpdir`` in the test function signature and @@ -159,7 +159,7 @@ before performing the test function call. Let's just run it:: $ py.test -q test_tmpdir.py - + ================================== ERRORS ================================== _____________________ ERROR collecting test_tmpdir.py ______________________ /home/hpk/p/pytest/.tox/regen/lib/python3.4/site-packages/_pytest/python.py:463: in _importtestmodule diff -r 570b7b6fd39fe56ca66d82dd8e3b533c5b4db105 -r dea7f0ad9330de94194522ea51bf686f2f8e0ef7 doc/en/index.txt --- a/doc/en/index.txt +++ b/doc/en/index.txt @@ -11,7 +11,7 @@ **a mature full-featured Python testing tool** - - runs on Posix/Windows, Python 2.5-3.4, PyPy and Jython-2.5.1 + - runs on Posix/Windows, Python 2.6-3.4, PyPy and (possibly still) Jython-2.5.1 - **well tested** with more than a thousand tests against itself - **strict backward compatibility policy** for safe pytest upgrades - :ref:`comprehensive online <toc>` and `PDF documentation <pytest.pdf>`_ Repository URL: https://bitbucket.org/hpk42/pytest/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit