fix the py version check

This commit is contained in:
holger krekel 2010-11-23 19:11:21 +01:00
parent 11e8e5570e
commit 4accc4aa68
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ import inspect
import py import py
from _pytest import hookspec # the extension point definitions from _pytest import hookspec # the extension point definitions
assert py.__version__.split(".")[:2] >= ['2', '0'], ("installation problem: " assert py.__version__.split(".")[:2] >= ['1', '4'], ("installation problem: "
"%s is too old, remove or upgrade 'py'" % (py.__version__)) "%s is too old, remove or upgrade 'py'" % (py.__version__))
default_plugins = ( default_plugins = (

View File

@ -5,7 +5,7 @@ see http://pytest.org for documentation and details
(c) Holger Krekel and others, 2004-2010 (c) Holger Krekel and others, 2004-2010
""" """
__version__ = '2.0.0.dev34' __version__ = '2.0.0.dev35'
__all__ = ['main'] __all__ = ['main']
from _pytest.core import main, UsageError, _preloadplugins from _pytest.core import main, UsageError, _preloadplugins

View File

@ -22,7 +22,7 @@ def main():
name='pytest', name='pytest',
description='py.test: simple powerful testing with Python', description='py.test: simple powerful testing with Python',
long_description = long_description, long_description = long_description,
version='2.0.0.dev34', version='2.0.0.dev35',
url='http://pytest.org', url='http://pytest.org',
license='MIT license', license='MIT license',
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'], platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
@ -67,4 +67,4 @@ def make_entry_points():
return {'console_scripts': l} return {'console_scripts': l}
if __name__ == '__main__': if __name__ == '__main__':
main() main()