[py-svn] commit/pytest: hpk42: bump version, fix -k option help

Bitbucket commits-noreply at bitbucket.org
Tue Nov 20 14:20:46 CET 2012


1 new commit in pytest:


https://bitbucket.org/hpk42/pytest/changeset/b8bca3fce019/
changeset:   b8bca3fce019
user:        hpk42
date:        2012-11-20 14:20:39
summary:     bump version, fix -k option help
affected #:  4 files

diff -r eb7dd60840e636067bf34f62570c6c71c051ceeb -r b8bca3fce01919379092e7aa12ec5c3bee3cf8cd CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,8 @@
+Changes between 2.3.4 and 2.3.5dev
+-----------------------------------
+
+- fix option help for "-k"
+
 Changes between 2.3.3 and 2.3.4
 -----------------------------------
 


diff -r eb7dd60840e636067bf34f62570c6c71c051ceeb -r b8bca3fce01919379092e7aa12ec5c3bee3cf8cd _pytest/__init__.py
--- a/_pytest/__init__.py
+++ b/_pytest/__init__.py
@@ -1,2 +1,2 @@
 #
-__version__ = '2.3.4'
+__version__ = '2.4.5dev1'


diff -r eb7dd60840e636067bf34f62570c6c71c051ceeb -r b8bca3fce01919379092e7aa12ec5c3bee3cf8cd _pytest/mark.py
--- a/_pytest/mark.py
+++ b/_pytest/mark.py
@@ -8,11 +8,12 @@
     group = parser.getgroup("general")
     group._addoption('-k',
         action="store", dest="keyword", default='', metavar="KEYWORDEXPR",
-        help="only run tests which match given keyword expression.  "
-             "An expression consists of space-separated terms. "
-             "Each term must match. Precede a term with '-' to negate. "
-             "Terminate expression with ':' to make the first match match "
-             "all subsequent tests (usually file-order). ")
+        help="only run tests which match the given expression. "
+             "An expression is a python evaluatable expression "
+             "where all names are substring-matched against test names "
+             "and keywords.  Example: -k 'test_method or test_other' "
+             "matches all test functions whose name contains "
+             "'test_method' or 'test_other'.")
 
     group._addoption("-m",
         action="store", dest="markexpr", default="", metavar="MARKEXPR",


diff -r eb7dd60840e636067bf34f62570c6c71c051ceeb -r b8bca3fce01919379092e7aa12ec5c3bee3cf8cd setup.py
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@
         name='pytest',
         description='py.test: simple powerful testing with Python',
         long_description = long_description,
-        version='2.3.4',
+        version='2.4.5dev1',
         url='http://pytest.org',
         license='MIT license',
         platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],

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