fix issue572 - python3 compat of tmpdir example in docs.

This commit is contained in:
holger krekel 2014-09-02 12:20:16 +02:00
parent c0f091d540
commit e3cea41dcd
3 changed files with 12 additions and 10 deletions

View File

@ -10,6 +10,8 @@ NEXT
- 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.

View File

@ -151,7 +151,7 @@ resources, for example a unique temporary directory::
# 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

View File

@ -11,7 +11,7 @@ pytest: helps you write better programs
**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>`_