(self)
| 5936 | schema.CreateTable(t).compile(dialect=sqlite.dialect()) |
| 5937 | |
| 5938 | def test_unsupported_operator(self): |
| 5939 | from sqlalchemy.sql.expression import BinaryExpression |
| 5940 | |
| 5941 | def myop(x, y): |
| 5942 | pass |
| 5943 | |
| 5944 | binary = BinaryExpression(column("foo"), column("bar"), myop) |
| 5945 | assert_raises_message( |
| 5946 | exc.UnsupportedCompilationError, |
| 5947 | r"Compiler <sqlalchemy.sql.compiler.StrSQLCompiler .*" |
| 5948 | r"can't render element of type <function.*", |
| 5949 | binary.compile, |
| 5950 | ) |
| 5951 | |
| 5952 | |
| 5953 | class StringifySpecialTest(fixtures.TestBase): |
nothing calls this directly
no test coverage detected