diff --git a/tests/endtoend/test_linux_consumption.py b/tests/endtoend/test_linux_consumption.py index 64f0d6205..001de4e19 100644 --- a/tests/endtoend/test_linux_consumption.py +++ b/tests/endtoend/test_linux_consumption.py @@ -2,8 +2,8 @@ # Licensed under the MIT License. import os import sys -from unittest import TestCase, skip +from unittest import TestCase, skipIf from requests import Request from azure_functions_worker.testutils_lc import ( @@ -13,7 +13,8 @@ _DEFAULT_HOST_VERSION = "4" -@skip +@skipIf(sys.version_info >= (3, 10, 0), + "Skip the tests for Python 3.10 and above") class TestLinuxConsumption(TestCase): """Test worker behaviors on specific scenarios.