Lines 3-8
Link Here
|
3 |
from sqlalchemy import * |
3 |
from sqlalchemy import * |
4 |
from sqlalchemy.testing import fixtures, engines |
4 |
from sqlalchemy.testing import fixtures, engines |
5 |
from sqlalchemy import testing |
5 |
from sqlalchemy import testing |
|
|
6 |
import unittest, sys |
6 |
from sqlalchemy.testing.engines import utf8_engine |
7 |
from sqlalchemy.testing.engines import utf8_engine |
7 |
from sqlalchemy.sql import column |
8 |
from sqlalchemy.sql import column |
8 |
from sqlalchemy.testing.schema import Table, Column |
9 |
from sqlalchemy.testing.schema import Table, Column |
Lines 71-76
Link Here
|
71 |
metadata.drop_all() |
72 |
metadata.drop_all() |
72 |
del unicode_bind |
73 |
del unicode_bind |
73 |
|
74 |
|
|
|
75 |
@unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy unsupported, fixed in 0.9") |
74 |
def test_insert(self): |
76 |
def test_insert(self): |
75 |
t1.insert().execute({u'méil':1, u'\u6e2c\u8a66':5}) |
77 |
t1.insert().execute({u'méil':1, u'\u6e2c\u8a66':5}) |
76 |
t2.insert().execute({'a':1, 'b':1}) |
78 |
t2.insert().execute({'a':1, 'b':1}) |
Lines 83-88
Link Here
|
83 |
assert t2.select().execute().fetchall() == [(1, 1)] |
85 |
assert t2.select().execute().fetchall() == [(1, 1)] |
84 |
assert t3.select().execute().fetchall() == [(1, 5, 1, 1)] |
86 |
assert t3.select().execute().fetchall() == [(1, 5, 1, 1)] |
85 |
|
87 |
|
|
|
88 |
@unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy unsupported, fixed in 0.9") |
86 |
def test_reflect(self): |
89 |
def test_reflect(self): |
87 |
t1.insert().execute({u'méil':2, u'\u6e2c\u8a66':7}) |
90 |
t1.insert().execute({u'méil':2, u'\u6e2c\u8a66':7}) |
88 |
t2.insert().execute({'a':2, 'b':2}) |
91 |
t2.insert().execute({'a':2, 'b':2}) |