diff options
| author | David Smith <smithdc@gmail.com> | 2023-03-05 13:37:03 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-03-06 13:40:35 +0100 |
| commit | 507bc1364816370b1902f06e98818d518a3fe0e2 (patch) | |
| tree | 5525a8cae92ee620fdf23ec2b87fa04038800d09 | |
| parent | c914d6cff176ae6bfab2f33a84bcfd45208f1894 (diff) | |
Refs #34381 -- Fixed InspectDBTransactionalTests.test_foreign_data_wrapper() on Windows.
| -rw-r--r-- | tests/inspectdb/tests.py | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index ad929fd9bc..4f44190686 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -1,4 +1,3 @@ -import os import re from io import StringIO from unittest import mock, skipUnless @@ -588,19 +587,17 @@ class InspectDBTransactionalTests(TransactionTestCase): "CREATE SERVER inspectdb_server FOREIGN DATA WRAPPER file_fdw" ) cursor.execute( - 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], + """ + CREATE FOREIGN TABLE inspectdb_iris_foreign_table ( + petal_length real, + petal_width real, + sepal_length real, + sepal_width real + ) SERVER inspectdb_server OPTIONS ( + program 'echo 1,2,3,4', + format 'csv' ) + """ ) out = StringIO() foreign_table_model = "class InspectdbIrisForeignTable(models.Model):" |
