[pygobject] test_gi: Fix TestFilename failure under C locale



commit 9b7dd1318cf540d5f8d03655da03534ed72707ec
Author: Martin Pitt <martinpitt gnome org>
Date:   Thu Nov 29 11:44:22 2012 +0100

    test_gi: Fix TestFilename failure under C locale

 tests/test_gi.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/test_gi.py b/tests/test_gi.py
index b80cacf..0be7904 100644
--- a/tests/test_gi.py
+++ b/tests/test_gi.py
@@ -711,6 +711,7 @@ class TestFilename(unittest.TestCase):
 
         dirname = GLib.Dir.make_tmp('testÃÃ.XXXXXX')
         self.assertTrue('/testÃÃ.' in dirname, dirname)
+        dirname = _bytes(dirname)
         self.assertTrue(os.path.isdir(dirname))
         os.rmdir(dirname)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]