From 820f5f8ff4b5f5a1f19f3f185c87deb88f853de4 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Wed, 25 May 2016 15:08:51 +0300 Subject: [PATCH] Remove unnecessary mock In one of the unit tests, we unnecessarily mock os.path.join. This seems to cause the test to hang on Python 3.4, as gettextutils will hang when attempting to translate one of the messages logged by the tested method. For now, we'll just remove this mock as it's blocking the gate. Still,We may have to understand better why we did not have this issue before. Change-Id: I7bec8755d98196eca6e7952cd493a997c71f2ca3 --- hyperv/tests/unit/test_pathutils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hyperv/tests/unit/test_pathutils.py b/hyperv/tests/unit/test_pathutils.py index 05980d84..3308e30e 100644 --- a/hyperv/tests/unit/test_pathutils.py +++ b/hyperv/tests/unit/test_pathutils.py @@ -77,8 +77,7 @@ class PathUtilsTestCase(test_base.HyperVBaseTestCase): self.fake_instance_name) self.assertIsNone(configdrive_path) - @mock.patch('os.path.join') - def test_get_instances_sub_dir(self, fake_path_join): + def test_get_instances_sub_dir(self): class WindowsError(Exception): def __init__(self, winerror=None):