0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Fixed #31736 -- Fixed InspectDBTransactionalTests.test_foreign_data_wrapper crash on Windows.

This commit is contained in:
Ahmad A. Hussein 2020-06-23 15:04:38 +02:00 committed by Mariusz Felisiak
parent d5118d2abc
commit 798835112d

View File

@ -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'