Skip to content

Commit f4156b1

Browse files
authored
Disable isolate worker dependencies for Python 3.9 (#855)
* Disable isolate worker dependencies * Mark unittest * Skip tests that assumes the feature flags are turned on
1 parent 4cf6402 commit f4156b1

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
@@ -37,7 +37,7 @@
3737
PYTHON_THREADPOOL_THREAD_COUNT_MIN = 1
3838
PYTHON_THREADPOOL_THREAD_COUNT_MAX = 32
3939
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT = False
40-
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT_39 = True
40+
PYTHON_ISOLATE_WORKER_DEPENDENCIES_DEFAULT_39 = False
4141
PYTHON_ENABLE_WORKER_EXTENSIONS_DEFAULT = False
4242
PYTHON_ENABLE_WORKER_EXTENSIONS_DEFAULT_39 = True
4343

tests/unittests/test_utilities_dependency.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,8 @@ def test_use_worker_dependencies_default_python_36_37_38(self):
454454
with self.assertRaises(ImportError):
455455
import common_module # NoQA
456456

457-
@unittest.skipUnless(
458-
sys.version_info.major == 3 and sys.version_info.minor == 9,
459-
'Test only available for Python 3.9'
457+
@unittest.skip(
458+
'Test is not available due to feature flag is turned off'
460459
)
461460
def test_use_worker_dependencies_default_python_39(self):
462461
# Feature should be enabled in Python 3.9 by default
@@ -523,9 +522,8 @@ def test_prioritize_customer_dependencies_default_python_36_37_38(self):
523522
with self.assertRaises(ImportError):
524523
import common_module # NoQA
525524

526-
@unittest.skipUnless(
527-
sys.version_info.major == 3 and sys.version_info.minor == 9,
528-
'Test only available for Python 3.9'
525+
@unittest.skip(
526+
'Test is not available since feature flag is turned off'
529527
)
530528
def test_prioritize_customer_dependencies_default_python_39(self):
531529
# Feature should be enabled in Python 3.9 by default

0 commit comments

Comments
 (0)