diff options
author | Ryan S. Arnold <ryan.arnold@linaro.org> | 2016-08-20 01:54:13 -0500 |
---|---|---|
committer | Ryan S. Arnold <ryan.arnold@linaro.org> | 2016-08-20 01:54:13 -0500 |
commit | 897b858b24b10b83cbba63fb4c6506d916af5af3 (patch) | |
tree | 18acb274b1488efcdfa759b329357e744e2ba0eb | |
parent | 737c797232f444acee6462df4deb41ad06be7021 (diff) |
Correct test expectations and remove spurious print statements.
-rw-r--r-- | linaropy/git/gitrepo.py | 1 | ||||
-rw-r--r-- | linaropy/rn/linaroseries.py | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/linaropy/git/gitrepo.py b/linaropy/git/gitrepo.py index b9f2c03..ffc85d9 100644 --- a/linaropy/git/gitrepo.py +++ b/linaropy/git/gitrepo.py @@ -184,7 +184,6 @@ class GitRepo(object): def tag_exists(self, tag): try: with cd(self.repodir): - print("testing tag %s on repo %s" % (tag, self.repodir)) tagref="refs/tags/%s" % tag git("rev-parse", "-q", "--verify", tagref) except ErrorReturnCode_128: diff --git a/linaropy/rn/linaroseries.py b/linaropy/rn/linaroseries.py index b3e0322..c92ad84 100644 --- a/linaropy/rn/linaroseries.py +++ b/linaropy/rn/linaroseries.py @@ -228,7 +228,7 @@ class TestLinaroSeries(unittest.TestCase): unknown=LinaroSeries("candidate", package="GCC-5.3.1", date=datetime(2016,05,15), spin="1", rc="1") # Purposely override with an incorrect seriestype. unknown.seriestype=99 - with self.assertRaises(TypeError): + with self.assertRaises(IndexError): candidate=unknown.toNextCandidate() def test_candidate_to_release(self): @@ -268,7 +268,7 @@ class TestLinaroSeries(unittest.TestCase): unknown=LinaroSeries("release", package="GCC-5.3.1", date=datetime(2016,05,15), spin="1") # Purposely override with an incorrect seriestype. unknown.seriestype=99 - with self.assertRaises(TypeError): + with self.assertRaises(IndexError): release=unknown.toNextRelease() def test_candidate_to_snapshot(self): @@ -317,7 +317,7 @@ class TestLinaroSeries(unittest.TestCase): unknown=LinaroSeries("snapshot", package="GCC-5.3.1", date=datetime(2016,05,15), spin="1") # Purposely override with an incorrect seriestype. unknown.seriestype=99 - with self.assertRaises(TypeError): + with self.assertRaises(IndexError): snapshot=unknown.toNextSnapshot() def test_snapshot_toNext(self): |