mirror of
https://github.com/django/django.git
synced 2025-04-15 12:54:38 +00:00
[3.1.x] Fixed #31736 -- Fixed InspectDBTransactionalTests.test_foreign_data_wrapper crash on Windows.
Backport of 798835112d81b852efaae0e067af389c733cd1b3 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…
x
Reference in New Issue
Block a user