From: | "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/sqlalchemy: sqlalchemy-0.6.0.ebuild |
Date: | Wed, 21 Apr 2010 08:56:41 |
Message-Id: | 20100421085616.B72392C055@corvid.gentoo.org |
1 | arfrever 10/04/21 08:56:16 |
2 | |
3 | Modified: sqlalchemy-0.6.0.ebuild |
4 | Log: |
5 | Fix tests. |
6 | (Portage version: HEAD/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.2 dev-python/sqlalchemy/sqlalchemy-0.6.0.ebuild |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-0.6.0.ebuild?rev=1.2&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-0.6.0.ebuild?rev=1.2&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-0.6.0.ebuild?r1=1.1&r2=1.2 |
14 | |
15 | Index: sqlalchemy-0.6.0.ebuild |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-0.6.0.ebuild,v |
18 | retrieving revision 1.1 |
19 | retrieving revision 1.2 |
20 | diff -u -r1.1 -r1.2 |
21 | --- sqlalchemy-0.6.0.ebuild 19 Apr 2010 18:35:53 -0000 1.1 |
22 | +++ sqlalchemy-0.6.0.ebuild 21 Apr 2010 08:56:16 -0000 1.2 |
23 | @@ -1,8 +1,8 @@ |
24 | # Copyright 1999-2010 Gentoo Foundation |
25 | # Distributed under the terms of the GNU General Public License v2 |
26 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-0.6.0.ebuild,v 1.1 2010/04/19 18:35:53 djc Exp $ |
27 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/sqlalchemy/sqlalchemy-0.6.0.ebuild,v 1.2 2010/04/21 08:56:16 arfrever Exp $ |
28 | |
29 | -EAPI="2" |
30 | +EAPI="3" |
31 | SUPPORT_PYTHON_ABIS="1" |
32 | |
33 | inherit distutils |
34 | @@ -36,13 +36,21 @@ |
35 | >=dev-python/nose-0.10.4 |
36 | || ( >=dev-lang/python-2.5[sqlite] dev-python/pysqlite ) |
37 | )" |
38 | -RESTRICT_PYTHON_ABIS="3.*" |
39 | |
40 | S="${WORKDIR}/${MY_P}" |
41 | |
42 | +src_prepare() { |
43 | + # Disable tests hardcoding function call counts specific to Python versions. |
44 | + sed \ |
45 | + -e "s/test_first_connect/_&/" \ |
46 | + -e "s/test_second_connect/_&/" \ |
47 | + -i test/aaa_profiling/test_pool.py |
48 | +} |
49 | + |
50 | src_test() { |
51 | testing() { |
52 | - PYTHONPATH="lib" nosetests-${PYTHON_ABI} |
53 | + [[ "${PYTHON_ABI}" == 3.* ]] && return |
54 | + PYTHONPATH="build-${PYTHON_ABI}/lib" nosetests |
55 | } |
56 | python_execute_function testing |
57 | } |