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

« back to all changes in this revision

Viewing changes to test/orm/test_unitofwork.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:
16
16
from sqlalchemy.testing import fixtures
17
17
from test.orm import _fixtures
18
18
from sqlalchemy.testing.assertsql import AllOf, CompiledSQL
 
19
from sqlalchemy import testing, util
19
20
 
20
21
class UnitOfWorkTest(object):
21
22
    pass
158
159
 
159
160
    @testing.fails_on('mssql+pyodbc',
160
161
                      'pyodbc returns a non unicode encoding of the results description.')
 
162
    @testing.skip_if(lambda: util.pypy,
 
163
            "pypy/sqlite3 reports unicode cursor.description "
 
164
            "incorrectly pre 2.2, workaround applied in 0.9")
161
165
    def test_mapping(self):
162
166
        t2, t1 = self.tables.t2, self.tables.t1
163
167
 
197
201
 
198
202
    @testing.fails_on('mssql+pyodbc',
199
203
                      'pyodbc returns a non unicode encoding of the results description.')
 
204
    @testing.skip_if(lambda: util.pypy,
 
205
            "pypy/sqlite3 reports unicode cursor.description "
 
206
            "incorrectly pre 2.2, workaround applied in 0.9")
200
207
    def test_inheritance_mapping(self):
201
208
        t2, t1 = self.tables.t2, self.tables.t1
202
209
 
2518
2525
        s.commit()
2519
2526
 
2520
2527
        t.col1 = "1"
2521
 
        s.commit()
 
 
b'\\ No newline at end of file'
 
2528
        s.commit()