Skip to content

Commit 9a5cf7b

Browse files
committed
Fixed wpc test
1 parent 0f877e0 commit 9a5cf7b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/endtoend/test_worker_process_count_functions.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ def setUpClass(cls):
2525
cls._patch_environ.start()
2626
super().setUpClass()
2727

28-
def tearDown(self):
29-
super().tearDown()
30-
self._patch_environ.stop()
28+
@classmethod
29+
def tearDownClass(cls):
30+
# Remove the PYTHON_SCRIPT_FILE_NAME environment variable
31+
os.environ.pop('PYTHON_THREADPOOL_THREAD_COUNT')
32+
os.environ.pop('FUNCTIONS_WORKER_PROCESS_COUNT')
33+
super().tearDownClass()
3134

3235
@classmethod
3336
def get_script_dir(cls):

0 commit comments

Comments
 (0)