bump version, fix -k option help

This commit is contained in:
holger krekel 2012-11-20 14:20:39 +01:00
parent cac1a48fc7
commit 1c9ef2443f
4 changed files with 13 additions and 7 deletions

View File

@ -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
-----------------------------------

View File

@ -1,2 +1,2 @@
#
__version__ = '2.3.4'
__version__ = '2.4.5dev1'

View File

@ -8,11 +8,12 @@ def pytest_addoption(parser):
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",

View File

@ -48,7 +48,7 @@ def main():
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'],