From 94224beed5298832830ca861fb9fa3d8fab9c320 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Fri, 7 Dec 2012 23:38:02 +0200 Subject: [PATCH] Fully qualified the module path to patch. --- tests/functional/openlp_core_utils/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/openlp_core_utils/test_utils.py b/tests/functional/openlp_core_utils/test_utils.py index ae8894661..2e826bc61 100644 --- a/tests/functional/openlp_core_utils/test_utils.py +++ b/tests/functional/openlp_core_utils/test_utils.py @@ -15,8 +15,8 @@ class TestUtils(TestCase): """ Test the get_filesystem_encoding() function """ - with patch(u'sys.getfilesystemencoding') as mocked_getfilesystemencoding, \ - patch(u'sys.getdefaultencoding') as mocked_getdefaultencoding: + with patch(u'openlp.core.utils.sys.getfilesystemencoding') as mocked_getfilesystemencoding, \ + patch(u'openlp.core.utils.sys.getdefaultencoding') as mocked_getdefaultencoding: # GIVEN: sys.getfilesystemencoding returns "cp1252" mocked_getfilesystemencoding.return_value = u'cp1252'