aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/utils.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-09 11:49:36 -0700
committerChris Larson <chris_larson@mentor.com>2010-04-09 12:45:38 -0700
commit3a11c2807972bbbddffde2fa67fc380d159da467 (patch)
treeb33504d2651bcfd90dbd7c763f2ec1399d38cb3b /lib/bb/utils.py
parent1e83e9200fb5d477ba6fc0aa722dab0904412351 (diff)
downloadbitbake-3a11c2807972bbbddffde2fa67fc380d159da467.tar.gz
Drop doctest, as we aren't utilizing it
We should add back in some proper unit testing. Doctest is rather limited, and we haven't actually made use of it since the original implementation of the datastore when the project started, as far as I'm aware. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/utils.py')
-rw-r--r--lib/bb/utils.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index 477c48823..83d05aaa7 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -97,14 +97,7 @@ _package_ends_ = ["pre", "p", "alpha", "beta", "rc", "cvs", "bk", "HEAD" ]
def relparse(myver):
"""Parses the last elements of a version number into a triplet, that can
- later be compared:
-
- >>> relparse('1.2_pre3')
- [1.2, -2, 3.0]
- >>> relparse('1.2b')
- [1.2, 98, 0]
- >>> relparse('1.2')
- [1.2, 0, 0]
+ later be compared.
"""
number = 0
@@ -150,17 +143,6 @@ __vercmp_cache__ = {}
def vercmp_string(val1,val2):
"""This takes two version strings and returns an integer to tell you whether
the versions are the same, val1>val2 or val2>val1.
-
- >>> vercmp('1', '2')
- -1.0
- >>> vercmp('2', '1')
- 1.0
- >>> vercmp('1', '1.0')
- 0
- >>> vercmp('1', '1.1')
- -1.0
- >>> vercmp('1.1', '1_p2')
- 1.0
"""
# quick short-circuit