fix trial tests

This commit is contained in:
holger krekel 2012-10-18 15:09:20 +02:00
parent 7c8755cc89
commit 64544bee1a
4 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
#
__version__ = '2.3.0.dev29'
__version__ = '2.3.0.dev30'

View File

@ -1529,7 +1529,7 @@ class FixtureManager:
self._holderobjseen.add(holderobj)
autousenames = []
for name in dir(holderobj):
obj = getattr(holderobj, name)
obj = getattr(holderobj, name, None)
if not callable(obj):
continue
# fixture functions have a pytest_funcarg__ prefix (pre-2.3 style)

View File

@ -24,7 +24,7 @@ def main():
name='pytest',
description='py.test: simple powerful testing with Python',
long_description = long_description,
version='2.3.0.dev29',
version='2.3.0.dev30',
url='http://pytest.org',
license='MIT license',
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],

View File

@ -313,7 +313,7 @@ class TestTrialUnittest:
"*i2wanto*",
"*sys.version_info*",
"*skip_in_method*",
"*4 skipped*3 xfail*1 xpass*",
"*5 skipped*3 xfail*1 xpass*",
])
def test_trial_error(self, testdir):