From e25fc1dcca084fbbd5f6a9dbfa5817d07203a240 Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Wed, 3 Nov 2021 15:57:17 -0700 Subject: [PATCH] Fix #677: Enable CI for python 3.10 Fix #689: test_django fails on py3.10 Re-enable Django tests on Python 3.10, and add it to CI runs. --- azure-pipelines/pipelines.yaml | 6 ++++++ tests/debugpy/test_django.py | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/azure-pipelines/pipelines.yaml b/azure-pipelines/pipelines.yaml index 0e592766..52bc1914 100644 --- a/azure-pipelines/pipelines.yaml +++ b/azure-pipelines/pipelines.yaml @@ -49,6 +49,8 @@ jobs: python.version: "3.8" py39: python.version: "3.9" + py310: + python.version: "3.10" steps: - script: | @@ -80,6 +82,8 @@ jobs: python.version: "3.8" py39: python.version: "3.9" + py310: + python.version: "3.10" steps: - script: | @@ -113,6 +117,8 @@ jobs: python.version: "3.8" py39: python.version: "3.9" + py310: + python.version: "3.10" py27_32: python.version: "2.7" architecture: "x86" diff --git a/tests/debugpy/test_django.py b/tests/debugpy/test_django.py index 2e73bae6..8365e32e 100644 --- a/tests/debugpy/test_django.py +++ b/tests/debugpy/test_django.py @@ -12,10 +12,7 @@ from tests import code, debug, log, net, test_data from tests.debug import runners, targets from tests.patterns import some -pytestmark = [ - pytest.mark.timeout(60), - pytest.mark.skipif(sys.version_info >= (3, 10), reason="https://github.com/microsoft/debugpy/issues/689"), -] +pytestmark = pytest.mark.timeout(60) django_server = net.WebServer(net.get_test_server_port(8000, 8100))