aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-02-04 15:12:29 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:53:53 -0300
commitf8e6845c81c9e189a0babecafc8b2e224c19f7d4 (patch)
treef9aca73ca14f7381dc0f911a1320b415c0968647 /tests
parent143e81278c6d2337e7ff64baaec00d14e3df5841 (diff)
Fix qresource_test openning the file in binary mode, so it doesn't fail on windows.
Diffstat (limited to 'tests')
-rw-r--r--tests/QtCore/qresource_test.py4
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()