diff options
author | Marien Zwart <marienz@gentoo.org> | 2006-01-11 16:02:06 +0000 |
---|---|---|
committer | Marien Zwart <marienz@gentoo.org> | 2006-01-11 16:02:06 +0000 |
commit | c07a63931363a7f4ae9d8e881147c5dba99a5fd1 (patch) | |
tree | d650abfeba5cc971754eb92ddf6c4ad90fa29bf4 /dev-python/logilab-common/files | |
parent | Get rid of copious output from compile script, which was drastically slowing (diff) | |
download | gentoo-2-c07a63931363a7f4ae9d8e881147c5dba99a5fd1.tar.gz gentoo-2-c07a63931363a7f4ae9d8e881147c5dba99a5fd1.tar.bz2 gentoo-2-c07a63931363a7f4ae9d8e881147c5dba99a5fd1.zip |
Bump version to 0.13.0, add src_test.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-python/logilab-common/files')
3 files changed, 99 insertions, 0 deletions
diff --git a/dev-python/logilab-common/files/digest-logilab-common-0.13.0 b/dev-python/logilab-common/files/digest-logilab-common-0.13.0 new file mode 100644 index 000000000000..ab6146f1c10b --- /dev/null +++ b/dev-python/logilab-common/files/digest-logilab-common-0.13.0 @@ -0,0 +1 @@ +MD5 9b6500c2a23660edfabe65bf73137a51 common-0.13.0.tar.gz 140530 diff --git a/dev-python/logilab-common/files/logilab-common-0.13.0-configuration-help-test-less-strict.patch b/dev-python/logilab-common/files/logilab-common-0.13.0-configuration-help-test-less-strict.patch new file mode 100644 index 000000000000..f4c30bccd7a1 --- /dev/null +++ b/dev-python/logilab-common/files/logilab-common-0.13.0-configuration-help-test-less-strict.patch @@ -0,0 +1,19 @@ +=== modified file 'test/unittest_configuration.py' +--- test/unittest_configuration.py ++++ test/unittest_configuration.py +@@ -145,7 +145,13 @@ + + def test_help(self): + self.cfg.add_help_section('bonus', 'a nice additional help') +- self.assertLinesEquals(self.cfg.help().strip(), """usage: Just do it ! (tm) ++ help = self.cfg.help().strip() ++ # at least in python 2.4.2 the output is: ++ # ' -v <string>, --value=<string>' ++ # it is not unlikely some optik/optparse versions do print -v<string> ++ # so accept both ++ help = help.replace(' -v <string>, ', ' -v<string>, ') ++ self.assertLinesEquals(help, """usage: Just do it ! (tm) + + options: + -h, --help show this help message and exit + diff --git a/dev-python/logilab-common/files/logilab-common-0.13.0-dbapi-skip-tests.patch b/dev-python/logilab-common/files/logilab-common-0.13.0-dbapi-skip-tests.patch new file mode 100644 index 000000000000..43a5d2c6551f --- /dev/null +++ b/dev-python/logilab-common/files/logilab-common-0.13.0-dbapi-skip-tests.patch @@ -0,0 +1,79 @@ +=== modified file 'test/unittest_db.py' +--- test/unittest_db.py ++++ test/unittest_db.py +@@ -92,9 +92,12 @@ + + def test_connection_wrap(self): + """Tests the connection wrapping""" +- cnx = get_connection('postgres', +- self.host, self.db, self.user, self.passwd, +- quiet=1) ++ try: ++ cnx = get_connection('postgres', ++ self.host, self.db, self.user, self.passwd, ++ quiet=1) ++ except ImportError: ++ self.skip('postgresql dbapi module not installed') + self.failIf(isinstance(cnx, PyConnection), + 'cnx should *not* be a PyConnection instance') + cnx = get_connection('postgres', +@@ -106,9 +109,12 @@ + + def test_cursor_wrap(self): + """Tests cursor wrapping""" +- cnx = get_connection('postgres', +- self.host, self.db, self.user, self.passwd, +- quiet=1, pywrap = True) ++ try: ++ cnx = get_connection('postgres', ++ self.host, self.db, self.user, self.passwd, ++ quiet=1, pywrap = True) ++ except ImportError: ++ self.skip('postgresql dbapi module not installed') + cursor = cnx.cursor() + self.failUnless(isinstance(cursor, PyCursor), + 'cnx should be a PyCursor instance') +@@ -134,8 +140,11 @@ + + def test_pgdb_types(self): + """Tests that NUMBER really wraps all number types""" +- set_prefered_driver('postgres', 'pgdb') +- module = get_dbapi_compliant_module('postgres') ++ set_prefered_driver('postgres', 'pgdb') ++ try: ++ module = get_dbapi_compliant_module('postgres') ++ except ImportError: ++ self.skip('python-pqsql is not installed') + number_types = 'int2', 'int4', 'serial', \ + 'int8', 'float4', 'float8', \ + 'numeric', 'bool', 'money' +@@ -146,16 +155,25 @@ + def test_pypgsql_getattr(self): + """Tests the getattr() delegation for pyPgSQL""" + set_prefered_driver('postgres', 'pyPgSQL.PgSQL') +- module = get_dbapi_compliant_module('postgres') ++ try: ++ module = get_dbapi_compliant_module('postgres') ++ except ImportError: ++ self.skip('python-pygresql is not installed') + try: + binary = module.BINARY + except AttributeError, err: + self.fail(str(err)) + + def test_adv_func_helper(self): +- module = get_dbapi_compliant_module('postgres') ++ try: ++ module = get_dbapi_compliant_module('postgres') ++ except ImportError: ++ self.skip('postgres dbapi module is not installed') + self.failUnless(isinstance(module.adv_func_helper, _PGAdvFuncHelper)) +- module = get_dbapi_compliant_module('sqlite') ++ try: ++ module = get_dbapi_compliant_module('sqlite') ++ except ImportError: ++ self.skip('pysqlite is not installed') + self.failUnless(isinstance(module.adv_func_helper, _GenericAdvFuncHelper)) + + + |