1 |
idella4 13/05/02 03:50:11 |
2 |
|
3 |
Added: sqlalchemy-0.8.1-pypy-fixtests.patch |
4 |
Log: |
5 |
bump |
6 |
|
7 |
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/sqlalchemy/files/sqlalchemy-0.8.1-pypy-fixtests.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sqlalchemy/files/sqlalchemy-0.8.1-pypy-fixtests.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sqlalchemy/files/sqlalchemy-0.8.1-pypy-fixtests.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: sqlalchemy-0.8.1-pypy-fixtests.patch |
16 |
=================================================================== |
17 |
# http://www.sqlalchemy.org/trac/ticket/2719 |
18 |
diff -ur SQLAlchemy-0.8.1.orig/test/ext/test_serializer.py SQLAlchemy-0.8.1/test/ext/test_serializer.py |
19 |
--- test/ext/test_serializer.py 2013-04-28 05:24:34.000000000 +0800 |
20 |
+++ test/ext/test_serializer.py 2013-05-02 01:02:25.376203511 +0800 |
21 |
@@ -114,6 +114,7 @@ |
22 |
Address(email='ed@××××.com'), |
23 |
Address(email='ed@×××××××××.com')]) |
24 |
|
25 |
+ @testing.skip_if(lambda: util.pypy, "problems with pypy pickle reported") |
26 |
def test_query_two(self): |
27 |
q = \ |
28 |
Session.query(User).join(User.addresses).\ |
29 |
@@ -123,6 +124,7 @@ |
30 |
eq_(q2.all(), [User(name='fred')]) |
31 |
eq_(list(q2.values(User.id, User.name)), [(9, u'fred')]) |
32 |
|
33 |
+ @testing.skip_if(lambda: util.pypy, "problems with pypy pickle reported") |
34 |
def test_query_three(self): |
35 |
ua = aliased(User) |
36 |
q = \ |
37 |
@@ -136,6 +138,7 @@ |
38 |
ua_2 = q2._entities[0].entity_zero.entity |
39 |
eq_(list(q2.values(ua_2.id, ua_2.name)), [(9, u'fred')]) |
40 |
|
41 |
+ @testing.skip_if(lambda: util.pypy, "problems with pypy pickle reported") |
42 |
def test_orm_join(self): |
43 |
from sqlalchemy.orm.util import join |
44 |
|
45 |
diff -ur SQLAlchemy-0.8.1.orig/test/orm/test_manytomany.py SQLAlchemy-0.8.1/test/orm/test_manytomany.py |
46 |
--- test/orm/test_manytomany.py 2013-04-28 05:24:34.000000000 +0800 |
47 |
+++ test/orm/test_manytomany.py 2013-05-02 01:05:08.073213015 +0800 |
48 |
@@ -233,6 +233,9 @@ |
49 |
p2 = Place('place2') |
50 |
p3 = Place('place3') |
51 |
|
52 |
+ sess = Session() |
53 |
+ sess.add_all([p3, p1, t1, t2, p2, t3]) |
54 |
+ |
55 |
t1.inputs.append(p1) |
56 |
t1.inputs.append(p2) |
57 |
t1.outputs.append(p3) |
58 |
@@ -240,8 +243,6 @@ |
59 |
p2.inputs.append(t2) |
60 |
p3.inputs.append(t2) |
61 |
p1.outputs.append(t1) |
62 |
- sess = Session() |
63 |
- sess.add_all((t1, t2, t3, p1, p2, p3)) |
64 |
sess.commit() |
65 |
|
66 |
self.assert_result([t1], |