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

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/testing/suite/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:
20
20
        """test literal rendering """
21
21
 
22
22
        # for literal, we test the literal render in an INSERT
23
 
        # into a typed column.  we can then SELECT it back as it's
 
23
        # into a typed column.  we can then SELECT it back as its
24
24
        # official type; ideally we'd be able to use CAST here
25
25
        # but MySQL in particular can't CAST fully
26
26
        t = Table('t', self.metadata, Column('x', type_))
208
208
 
209
209
    def test_literal_backslashes(self):
210
210
        data = r'backslash one \ backslash two \\ end'
211
 
        self._literal_round_trip(Text, [data], [data])
 
211
        self._literal_round_trip(String(40), [data], [data])
212
212
 
213
213
 
214
214
class _DateFixture(_LiteralRoundTripFixture):