mirror of https://github.com/django/django.git
[3.1.x] Fixed #31736 -- Fixed InspectDBTransactionalTests.test_foreign_data_wrapper crash on Windows.
Backport of 798835112d
from master
This commit is contained in:
parent
648f6ffcd7
commit
ac0ff7d700
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import re
|
||||
from io import StringIO
|
||||
from unittest import mock, skipUnless
|
||||
|
@ -397,9 +398,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'
|
||||
|
|
Loading…
Reference in New Issue