diff options
author | Ahmad A. Hussein <ahmadahussein0@gmail.com> | 2020-06-23 15:04:38 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-06-23 20:26:43 +0200 |
commit | 798835112d81b852efaae0e067af389c733cd1b3 (patch) | |
tree | 188c2d7bf3050f92d6aa8711f41e1fd1e043cde5 /tests/inspectdb | |
parent | d5118d2abc62eecbbce14b398ed7203e102444ae (diff) | |
download | django-798835112d81b852efaae0e067af389c733cd1b3.tar.gz |
Fixed #31736 -- Fixed InspectDBTransactionalTests.test_foreign_data_wrapper crash on Windows.
Diffstat (limited to 'tests/inspectdb')
-rw-r--r-- | tests/inspectdb/tests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index 83326e96c0..fa3a7ac21f 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -1,3 +1,4 @@ +import os import re from io import StringIO from unittest import mock, skipUnless @@ -381,9 +382,9 @@ class InspectDBTransactionalTests(TransactionTestCase): sepal_length real, sepal_width real ) SERVER inspectdb_server OPTIONS ( - filename '/dev/null' + filename %s ) - ''') + ''', [os.devnull]) out = StringIO() foreign_table_model = 'class InspectdbIrisForeignTable(models.Model):' foreign_table_managed = 'managed = False' |