From 2662231206905d431b50eebfde4587613851a2cb Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Fri, 22 May 2020 15:20:25 -0700 Subject: [PATCH] Fix incorrect addCleanup that breaks with 3.8.3 --- src/azure_devtools/scenario_tests/patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure_devtools/scenario_tests/patches.py b/src/azure_devtools/scenario_tests/patches.py index 74c2792..ba3d95c 100644 --- a/src/azure_devtools/scenario_tests/patches.py +++ b/src/azure_devtools/scenario_tests/patches.py @@ -34,4 +34,4 @@ def mock_in_unit_test(unit_test, target, replacement): mp = mock.patch(target, replacement) mp.__enter__() - unit_test.addCleanup(mp.__exit__) + unit_test.addCleanup(mp.__exit__, None, None, None)