[pygobject/gsoc2009: 4/160] Fix testFilenameReturn
- From: Simon van der Linden <svdlinden src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject/gsoc2009: 4/160] Fix testFilenameReturn
- Date: Fri, 14 Aug 2009 21:22:25 +0000 (UTC)
commit 5b14e76e7f5520f912e42c2a9f92ff8456f0a265
Author: Simon van der Linden <svdlinden src gnome org>
Date: Wed Jun 17 21:18:52 2009 +0200
Fix testFilenameReturn
tests/test_girepository.py | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/tests/test_girepository.py b/tests/test_girepository.py
index 4c529ed..60b6830 100644
--- a/tests/test_girepository.py
+++ b/tests/test_girepository.py
@@ -228,19 +228,11 @@ class TestGIEverything(unittest.TestCase):
def testUtf8Inout(self):
self.assertEquals(utf8_nonconst, Everything.test_utf8_inout(utf8_const))
-# FIXME
-# ======================================================================
-# FAIL: testFilenameReturn (__main__.TestGIEverything)
-# ----------------------------------------------------------------------
-# Traceback (most recent call last):
-# File "test_girepository.py", line 175, in testFilenameReturn
-# self.assertEquals('\u00e5\u00e4\u00f6', filenames[0])
-# AssertionError: '\\u00e5\\u00e4\\u00f6' != '<unhandled return value!>'
-# def testFilenameReturn(self):
-# filenames = Everything.test_filename_return()
-# self.assertEquals(2, len(filenames))
-# self.assertEquals('\u00e5\u00e4\u00f6', filenames[0])
-# self.assertEquals('/etc/fstab', filenames[1])
+ def testFilenameReturn(self):
+ filenames = Everything.test_filename_return()
+ self.assertEquals(2, len(filenames))
+ self.assertEquals('\xc3\xa5\xc3\xa4\xc3\xb6', filenames[0])
+ self.assertEquals('/etc/fstab', filenames[1])
# FIXME
# ======================================================================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]