Skip to content

Commit

Permalink
bump version and comment out ignore-testclass-if-unittest-module-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
hpk42 committed Nov 17, 2010
1 parent a298cf7 commit fb102a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _pytest/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def pytest_pycollect_makeitem(__multicall__, collector, name, obj):
if res is not None:
return res
if collector._istestclasscandidate(name, obj):
if hasattr(collector.obj, 'unittest'):
return # we assume it's a mixin class for a TestCase derived one
#if hasattr(collector.obj, 'unittest'):
# return # we assume it's a mixin class for a TestCase derived one
return Class(name, parent=collector)
elif collector.funcnamefilter(name) and hasattr(obj, '__call__'):
if is_generator(obj):
Expand Down
2 changes: 1 addition & 1 deletion pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
(c) Holger Krekel and others, 2004-2010
"""
__version__ = '2.0.0.dev28'
__version__ = '2.0.0.dev29'
__all__ = ['main']

from _pytest.core import main, UsageError, _preloadplugins
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main():
name='pytest',
description='py.test: simple powerful testing with Python',
long_description = long_description,
version='2.0.0.dev28',
version='2.0.0.dev29',
url='http://pytest.org',
license='MIT license',
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
Expand Down
1 change: 1 addition & 0 deletions testing/acceptance_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ def test_cmdline_python_package_not_exists(self, testdir):
])


@py.test.mark.xfail(reason="decide: feature or bug")
def test_noclass_discovery_if_not_testcase(self, testdir):
testpath = testdir.makepyfile("""
import unittest
Expand Down

0 comments on commit fb102a2

Please sign in to comment.