Skip to content

Commit 2de202a

Browse files
gavin-aguiarvrdmr
andauthored
Disable dependency isolation for py 3.10 (#1003)
* Disable dependency isolation for py 3.10 * Fixing unit tests Co-authored-by: Varad Meru <[email protected]>
1 parent 8800edd commit 2de202a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

azure_functions_worker/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
PYTHON_THREADPOOL_THREAD_COUNT_MAX_37 = 32
4545

4646
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT = False
47-
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT_310 = True
47+
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT_310 = False
4848
PYTHON_ENABLE_WORKER_EXTENSIONS_DEFAULT = False
4949
PYTHON_ENABLE_WORKER_EXTENSIONS_DEFAULT_39 = True
5050

tests/unittests/test_utilities_dependency.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -571,10 +571,8 @@ def test_use_worker_dependencies_default_python_36_37_38_39(self):
571571
with self.assertRaises(ImportError):
572572
import common_module # NoQA
573573

574-
@unittest.skipUnless(
575-
is_python_version('3.10'),
576-
'Test only available for python 3.10'
577-
)
574+
@unittest.skip('Skipping since PYTHON_ISOLATE_WORKER_DEPENDENCIES is '
575+
'disabled by default')
578576
def test_use_worker_dependencies_default_python_310(self):
579577
# Feature should be enabled in Python 3.10 by default
580578
# Setup paths
@@ -642,8 +640,8 @@ def test_prioritize_customer_dependencies_default_python_36_37_38_39(self):
642640
with self.assertRaises(ImportError):
643641
import common_module # NoQA
644642

645-
@unittest.skipUnless(is_python_version('3.10'),
646-
'Test only available for python 3.10')
643+
@unittest.skip('Skipping since PYTHON_ISOLATE_WORKER_DEPENDENCIES is '
644+
'disabled by default')
647645
def test_prioritize_customer_dependencies_default_python_310(self):
648646
# Feature should be enabled in Python 3.10 by default
649647
# Setup paths

0 commit comments

Comments
 (0)