diff options
Diffstat (limited to 'tests/QtCore/qresource_test.py')
-rw-r--r-- | tests/QtCore/qresource_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/QtCore/qresource_test.py b/tests/QtCore/qresource_test.py index 49e9e5fef..34f26981f 100644 --- a/tests/QtCore/qresource_test.py +++ b/tests/QtCore/qresource_test.py @@ -13,7 +13,7 @@ class ResourcesUsage(unittest.TestCase): def testPhrase(self): #Test loading of quote.txt resource - f = open(adjust_filename('quoteEnUS.txt', __file__)) + f = open(adjust_filename('quoteEnUS.txt', __file__), "r") orig = f.read() f.close() @@ -25,7 +25,7 @@ class ResourcesUsage(unittest.TestCase): def testImage(self): #Test loading of sample.png resource - f = open(adjust_filename('sample.png', __file__)) + f = open(adjust_filename('sample.png', __file__), "rb") orig = f.read() f.close() |