]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_cli.py: use str objects instead of unicode ones
authorfrancois <francois@ctrlaltdel.ch>
Fri, 14 Nov 2008 14:41:37 +0000 (07:41 -0700)
committerfrancois <francois@ctrlaltdel.ch>
Fri, 14 Nov 2008 14:41:37 +0000 (07:41 -0700)
This will hopefully fix failing tests with LC_ALL=C

src/allmydata/test/test_cli.py

index 4fa2e0410a35d839ac64ea6fcf19a741fb19060e..fb3edb05410e4b0308c74b122a5b9f47e98d9906 100644 (file)
@@ -550,11 +550,13 @@ class Cp(SystemTestMixin, CLITestMixin, unittest.TestCase):
     def test_unicode_filename(self):
         self.basedir = os.path.dirname(self.mktemp())
 
-        fn1 = os.path.join(self.basedir, u"Ă„rtonwall")
-        open(fn1, "wb").write("unicode file content")
+        fn1 = os.path.join(self.basedir, "Ă„rtonwall")
+        DATA1 = "unicode file content"
+        open(fn1, "wb").write(DATA1)
 
-        fn2 = os.path.join(self.basedir, u"Metallica")
-        open(fn2, "wb").write("non-unicode file content")
+        fn2 = os.path.join(self.basedir, "Metallica")
+        DATA2 = "non-unicode file content"
+        open(fn2, "wb").write(DATA2)
 
         # Bug #534
         # Assure that uploading a file whose name contains unicode character doesn't