[pygobject] Fix test_gi.TestProjectVersion.test_version_str()
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Fix test_gi.TestProjectVersion.test_version_str()
- Date: Mon, 23 Sep 2013 10:06:53 +0000 (UTC)
commit c626be6317b610277c95461108573d1ae6f42b6d
Author: Martin Pitt <martinpitt gnome org>
Date: Mon Sep 23 12:06:11 2013 +0200
Fix test_gi.TestProjectVersion.test_version_str()
In this test case we only do a string comparison, not a proper "by version
component" numerical one. So relax the test to also work with 3.10.
tests/test_gi.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index c47ac57..da55187 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -2914,7 +2914,7 @@ class TestModule(unittest.TestCase):
class TestProjectVersion(unittest.TestCase):
def test_version_str(self):
- self.assertGreaterEqual(gi.__version__, "3.3.5")
+ self.assertGreater(gi.__version__, "3.")
def test_version_info(self):
self.assertEqual(len(gi.version_info), 3)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]