[cedar-backup-svn] SF.net SVN: cedar-backup: [848] cedar-backup2/trunk
Brought to you by:
pronovic
|
From: <pro...@us...> - 2008-02-27 04:15:24
|
Revision: 848
http://cedar-backup.svn.sourceforge.net/cedar-backup/?rev=848&view=rev
Author: pronovic
Date: 2008-02-26 20:05:21 -0800 (Tue, 26 Feb 2008)
Log Message:
-----------
Fix testEncodePath_009() to be aware of UTF-8 encoding.
Modified Paths:
--------------
cedar-backup2/trunk/Changelog
cedar-backup2/trunk/test/utiltests.py
Modified: cedar-backup2/trunk/Changelog
===================================================================
--- cedar-backup2/trunk/Changelog 2008-02-07 15:25:31 UTC (rev 847)
+++ cedar-backup2/trunk/Changelog 2008-02-27 04:05:21 UTC (rev 848)
@@ -1,3 +1,7 @@
+Version 2.15.3 unreleased
+
+ * Fix testEncodePath_009() to be aware of "UTF-8" encoding.
+
Version 2.15.2 07 Feb 2008
* Updated copyright statements now that code changed in year 2008.
Modified: cedar-backup2/trunk/test/utiltests.py
===================================================================
--- cedar-backup2/trunk/test/utiltests.py 2008-02-07 15:25:31 UTC (rev 847)
+++ cedar-backup2/trunk/test/utiltests.py 2008-02-27 04:05:21 UTC (rev 848)
@@ -3273,7 +3273,7 @@
path = u"\xe2\x99\xaa\xe2\x99\xac"
safePath = encodePath(path)
self.failUnless(isinstance(safePath, str))
- if encoding == "utf-8":
+ if encoding.upper() == "UTF-8": # apparently, some platforms have "utf-8", some have "UTF-8"
self.failUnlessEqual('\xc3\xa2\xc2\x99\xc2\xaa\xc3\xa2\xc2\x99\xc2\xac', safePath)
else:
self.failUnlessEqual("\xe2\x99\xaa\xe2\x99\xac", safePath)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|