mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Removed stale Windows asyncio test skips.
Underlying issue was fixed in Python 3.8.1, now many versions ago. https://bugs.python.org/issue38563
This commit is contained in:
parent
a0bd006306
commit
5c67d906fd
2 changed files with 1 additions and 19 deletions
|
@ -1,7 +1,6 @@
|
|||
import asyncio
|
||||
import os
|
||||
import sys
|
||||
from unittest import mock, skipIf
|
||||
from unittest import mock
|
||||
|
||||
from asgiref.sync import async_to_sync
|
||||
|
||||
|
@ -15,10 +14,6 @@ from django.views.generic.base import View
|
|||
from .models import SimpleModel
|
||||
|
||||
|
||||
@skipIf(
|
||||
sys.platform == "win32" and (3, 8, 0) < sys.version_info < (3, 8, 1),
|
||||
"https://bugs.python.org/issue38563",
|
||||
)
|
||||
class CacheTest(SimpleTestCase):
|
||||
def test_caches_local(self):
|
||||
@async_to_sync
|
||||
|
@ -30,10 +25,6 @@ class CacheTest(SimpleTestCase):
|
|||
self.assertIs(cache_1, cache_2)
|
||||
|
||||
|
||||
@skipIf(
|
||||
sys.platform == "win32" and (3, 8, 0) < sys.version_info < (3, 8, 1),
|
||||
"https://bugs.python.org/issue38563",
|
||||
)
|
||||
class DatabaseConnectionTest(SimpleTestCase):
|
||||
"""A database connection cannot be used in an async context."""
|
||||
|
||||
|
@ -42,10 +33,6 @@ class DatabaseConnectionTest(SimpleTestCase):
|
|||
list(SimpleModel.objects.all())
|
||||
|
||||
|
||||
@skipIf(
|
||||
sys.platform == "win32" and (3, 8, 0) < sys.version_info < (3, 8, 1),
|
||||
"https://bugs.python.org/issue38563",
|
||||
)
|
||||
class AsyncUnsafeTest(SimpleTestCase):
|
||||
"""
|
||||
async_unsafe decorator should work correctly and returns the correct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue