[Python-checkins] distutils2: added tests that cover the bug

tarek.ziade python-checkins at python.org
Mon May 31 01:56:09 CEST 2010


tarek.ziade pushed e5c9c41d41f6 to distutils2:

http://hg.python.org/distutils2/rev/e5c9c41d41f6
changeset:   178:e5c9c41d41f6
user:        Josip Djolonga
date:        Thu May 27 20:51:47 2010 +0200
summary:     added tests that cover the bug
files:       src/distutils2/tests/test_version.py

diff --git a/src/distutils2/tests/test_version.py b/src/distutils2/tests/test_version.py
--- a/src/distutils2/tests/test_version.py
+++ b/src/distutils2/tests/test_version.py
@@ -145,6 +145,11 @@
         assert VersionPredicate('Ho (<3.0)').match('2.6')
         assert VersionPredicate('Ho (<3.0,!=2.5)').match('2.6.0')
         assert not VersionPredicate('Ho (<3.0,!=2.6)').match('2.6.0')
+        assert VersionPredicate('Ho (2.5)').match('2.5.4')
+        assert not VersionPredicate('Ho (!=2.5)').match('2.5.2')
+        assert VersionPredicate('Hey (<=2.5)').match('2.5.9')
+        assert not VersionPredicate('Hey (<=2.5)').match('2.6.0')
+        assert VersionPredicate('Hey (>=2.5)').match('2.5.1')
 
 
         # XXX need to silent the micro version in this case

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list