fixed test

This commit is contained in:
Andreas Preikschat 2013-04-20 19:53:17 +02:00
parent 58b21030e0
commit a393302a07
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class TestLib(TestCase):
"""
Test the get_text_file_string() method when a read error happens
"""
with patch(u'openlp.core.lib.os.path.isfile') as mocked_isfile, patch(u'__builtin__.open') as mocked_open:
with patch(u'openlp.core.lib.os.path.isfile') as mocked_isfile, patch(u'builtins.open') as mocked_open:
# GIVEN: A mocked-out open() which raises an exception and isfile returns True
filename = u'testfile.txt'
mocked_isfile.return_value = True