[py-svn] commit/pytest: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Tue Nov 6 15:39:03 CET 2012
2 new commits in pytest:
https://bitbucket.org/hpk42/pytest/changeset/7fe44182c434/
changeset: 7fe44182c434
user: hpk42
date: 2012-11-06 15:36:11
summary: fix py31 compat, amend setup.py long description
affected #: 2 files
diff -r 14583b72af1023ad058ad763ab9ceec3d0f12828 -r 7fe44182c434f8ac89149a3c340479872a5d5ccb _pytest/nose.py
--- a/_pytest/nose.py
+++ b/_pytest/nose.py
@@ -41,7 +41,7 @@
def call_optional(obj, name):
method = getattr(obj, name, None)
- if method is not None and not hasattr(method, "_pytestfixturefunction") and callable(method):
+ if method is not None and not hasattr(method, "_pytestfixturefunction") and py.builtin.callable(method):
# If there's any problems allow the exception to raise rather than
# silently ignoring them
method()
diff -r 14583b72af1023ad058ad763ab9ceec3d0f12828 -r 7fe44182c434f8ac89149a3c340479872a5d5ccb setup.py
--- a/setup.py
+++ b/setup.py
@@ -7,15 +7,39 @@
from setuptools import setup, Command
long_description = """
-cross-project testing tool for Python.
+The `py.test`` testing tool makes it easy to write small tests, yet
+scales to support complex functional testing. It provides
-Platforms: Linux, Win32, OSX
+- `auto-discovery
+ <http://pytest.org/latest/goodpractises.html#python-test-discovery>`_
+ of test modules and functions,
+- detailed info on failing `assert statements <http://pytest.org/latest/assert.html>`_ (no need to remember ``self.assert*`` names)
+- `modular fixtures <http://pytest.org/latest/fixture.html>`_ for
+ managing small or parametrized long-lived test resources.
+- multi-paradigm support: you can use ``py.test`` to run test suites based
+ on `unittest <http://pytest.org/latest/unittest.html>`_ (or trial),
+ `nose <http://pytest.org/latest/nose.html>`_
+- single-source compatibility to Python2.4 all the way up to Python3.3,
+ PyPy and Jython.
-Interpreters: Python versions 2.4 through to 3.3, Jython 2.5.1 and PyPy-1.9
+- many `external plugins <http://pytest.org/latest/plugins.html#installing-external-plugins-searching>`_.
-Bugs and issues: http://bitbucket.org/hpk42/pytest/issues/
+A simple example for a test::
-Web page: http://pytest.org
+ # content of test_module.py
+ def test_function():
+ i = 4
+ assert i == 3
+
+which can be run with ``py.test test_module.py``. See `getting-started <http://pytest.org/latest/getting-started.html#our-first-test-run>`_ for more examples.
+
+For much more info, including PDF docs, see
+
+ http://pytest.org
+
+and report bugs at:
+
+ http://bitbucket.org/hpk42/pytest/issues/
(c) Holger Krekel and others, 2004-2012
"""
https://bitbucket.org/hpk42/pytest/changeset/3a19b692db44/
changeset: 3a19b692db44
user: hpk42
date: 2012-11-06 15:38:49
summary: Added tag 2.3.3 for changeset 7fe44182c434
affected #: 1 file
diff -r 7fe44182c434f8ac89149a3c340479872a5d5ccb -r 3a19b692db4484dfcdddba6d61615612afa58941 .hgtags
--- a/.hgtags
+++ b/.hgtags
@@ -52,3 +52,4 @@
c27a60097767c16a54ae56d9669a77925b213b9b 2.3.0
acf0e1477fb19a1d35a4e40242b77fa6af32eb17 2.3.1
8738b828dec53937765db71951ef955cca4c51f6 2.3.2
+7fe44182c434f8ac89149a3c340479872a5d5ccb 2.3.3
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.
More information about the pytest-commit
mailing list