~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to test/sql/test_types.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
571
571
        MyType = self.MyType
572
572
 
573
573
        # test coerce from nulltype - e.g. use an object that
574
 
        # doens't match to a known type
 
574
        # does't match to a known type
575
575
        class MyObj(object):
576
576
            def __str__(self):
577
577
                return "THISISMYOBJ"
1218
1218
 
1219
1219
    def load_stream(self, name):
1220
1220
        f = os.path.join(os.path.dirname(__file__), "..", name)
1221
 
        return open(f, mode='rb').read()
 
1221
        with open(f, mode='rb') as o:
 
1222
            return o.read()
1222
1223
 
1223
1224
class ExpressionTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL):
1224
1225
    __dialect__ = 'default'