Skip to content

Commit 77bf3a1

Browse files
HazhzengHanzhang Zeng (Roger)
authored andcommitted
Disable dependency isolation (#877)
1 parent 316eec6 commit 77bf3a1

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

azure_functions_worker/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
PYTHON_THREADPOOL_THREAD_COUNT_MIN = 1
3939
PYTHON_THREADPOOL_THREAD_COUNT_MAX = 32
4040
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT = False
41-
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT_39 = True
41+
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT_39 = False
4242
PYTHON_ENABLE_WORKER_EXTENSIONS_DEFAULT = False
4343
PYTHON_ENABLE_WORKER_EXTENSIONS_DEFAULT_39 = True
4444

tests/unittests/test_utilities_dependency.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,9 @@ def test_clear_path_importer_cache_and_modules_retain_namespace(self):
523523
os.path.join(self._worker_deps_path, 'common_module')
524524
)
525525

526+
@unittest.skip(
527+
'This feature is not ready due to azure. namespace not found bugs.'
528+
)
526529
def test_use_worker_dependencies(self):
527530
# Setup app settings
528531
os.environ['PYTHON_ISOLATE_WORKER_DEPENDENCIES'] = 'true'
@@ -570,9 +573,8 @@ def test_use_worker_dependencies_default_python_36_37_38(self):
570573
with self.assertRaises(ImportError):
571574
import common_module # NoQA
572575

573-
@unittest.skipUnless(
574-
sys.version_info.major == 3 and sys.version_info.minor == 9,
575-
'Test only available for Python 3.9'
576+
@unittest.skip(
577+
'This feature is not ready due to azure. namespace not found bugs.'
576578
)
577579
def test_use_worker_dependencies_default_python_39(self):
578580
# Feature should be enabled in Python 3.9 by default
@@ -627,7 +629,7 @@ def test_prioritize_customer_dependencies_disable(self):
627629
with self.assertRaises(ImportError):
628630
import common_module # NoQA
629631

630-
@unittest.skipUnless(
632+
@unittest.skipIf(
631633
sys.version_info.major == 3 and sys.version_info.minor in (6, 7, 8),
632634
'Test only available for Python 3.6, 3.7, or 3.8'
633635
)
@@ -643,9 +645,8 @@ def test_prioritize_customer_dependencies_default_python_36_37_38(self):
643645
with self.assertRaises(ImportError):
644646
import common_module # NoQA
645647

646-
@unittest.skipUnless(
647-
sys.version_info.major == 3 and sys.version_info.minor == 9,
648-
'Test only available for Python 3.9'
648+
@unittest.skip(
649+
'This feature is not ready due to azure. namespace not found bugs.'
649650
)
650651
def test_prioritize_customer_dependencies_default_python_39(self):
651652
# Feature should be enabled in Python 3.9 by default

0 commit comments

Comments
 (0)