~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to test/sql/test_unicode.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2013-10-28 22:29:40 UTC
  • mfrom: (1.4.24)
  • Revision ID: package-import@ubuntu.com-20131028222940-wvyqffl4g617caun
Tags: 0.8.3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
from sqlalchemy import *
5
5
from sqlalchemy.testing import fixtures, engines
6
 
from sqlalchemy import testing
 
6
from sqlalchemy import testing, util
7
7
from sqlalchemy.testing.engines import utf8_engine
8
8
from sqlalchemy.sql import column
9
9
from sqlalchemy.testing.schema import Table, Column
71
71
        metadata.drop_all()
72
72
        del unicode_bind
73
73
 
 
74
    @testing.skip_if(lambda: util.pypy,
 
75
            "pypy/sqlite3 reports unicode cursor.description "
 
76
            "incorrectly pre 2.2, workaround applied in 0.9")
74
77
    def test_insert(self):
75
78
        t1.insert().execute({u'méil':1, u'\u6e2c\u8a66':5})
76
79
        t2.insert().execute({'a':1, 'b':1})
83
86
        assert t2.select().execute().fetchall() == [(1, 1)]
84
87
        assert t3.select().execute().fetchall() == [(1, 5, 1, 1)]
85
88
 
 
89
    @testing.skip_if(lambda: util.pypy,
 
90
            "pypy/sqlite3 reports unicode cursor.description "
 
91
            "incorrectly pre 2.2, workaround applied in 0.9")
86
92
    def test_reflect(self):
87
93
        t1.insert().execute({u'méil':2, u'\u6e2c\u8a66':7})
88
94
        t2.insert().execute({'a':2, 'b':2})