summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlton Gibson <carlton.gibson@noumenal.es>2022-04-14 10:43:34 +0200
committerCarlton Gibson <carlton.gibson@noumenal.es>2022-04-14 10:43:34 +0200
commit5c67d906fd2d2ae3d27abbe31c280f1b0623552d (patch)
tree0bb0ea2a928211b08b4a4667b0bb8572e013d98e
parenta0bd0063065de054c73d5984d7b4830e29e809e6 (diff)
Removed stale Windows asyncio test skips.
Underlying issue was fixed in Python 3.8.1, now many versions ago. https://bugs.python.org/issue38563
-rw-r--r--tests/asgi/tests.py5
-rw-r--r--tests/async/tests.py15
2 files changed, 1 insertions, 19 deletions
diff --git a/tests/asgi/tests.py b/tests/asgi/tests.py
index f8d284e9a3..ef7b55724e 100644
--- a/tests/asgi/tests.py
+++ b/tests/asgi/tests.py
@@ -2,7 +2,6 @@ import asyncio
import sys
import threading
from pathlib import Path
-from unittest import skipIf
from asgiref.testing import ApplicationCommunicator
@@ -23,10 +22,6 @@ from .urls import sync_waiter, test_filename
TEST_STATIC_ROOT = Path(__file__).parent / "project" / "static"
-@skipIf(
- sys.platform == "win32" and (3, 8, 0) < sys.version_info < (3, 8, 1),
- "https://bugs.python.org/issue38563",
-)
@override_settings(ROOT_URLCONF="asgi.urls")
class ASGITest(SimpleTestCase):
async_request_factory = AsyncRequestFactory()
diff --git a/tests/async/tests.py b/tests/async/tests.py
index 1a0627a064..66eece4b97 100644
--- a/tests/async/tests.py
+++ b/tests/async/tests.py
@@ -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