summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/inspectdb/tests.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py
index 66b2eb8260..7944e5f221 100644
--- a/tests/inspectdb/tests.py
+++ b/tests/inspectdb/tests.py
@@ -563,17 +563,19 @@ class InspectDBTransactionalTests(TransactionTestCase):
"CREATE SERVER inspectdb_server FOREIGN DATA WRAPPER file_fdw"
)
cursor.execute(
- """\
- CREATE FOREIGN TABLE inspectdb_iris_foreign_table (
- petal_length real,
- petal_width real,
- sepal_length real,
- sepal_width real
- ) SERVER inspectdb_server OPTIONS (
- filename %s
+ connection.ops.compose_sql(
+ """
+ CREATE FOREIGN TABLE inspectdb_iris_foreign_table (
+ petal_length real,
+ petal_width real,
+ sepal_length real,
+ sepal_width real
+ ) SERVER inspectdb_server OPTIONS (
+ filename %s
+ )
+ """,
+ [os.devnull],
)
- """,
- [os.devnull],
)
out = StringIO()
foreign_table_model = "class InspectdbIrisForeignTable(models.Model):"