From 32b5bc6330825870708764e546f4f6163ad4f914 Mon Sep 17 00:00:00 2001 From: francois Date: Fri, 14 Nov 2008 07:41:37 -0700 Subject: [PATCH] test_cli.py: use str objects instead of unicode ones This will hopefully fix failing tests with LC_ALL=C --- src/allmydata/test/test_cli.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/allmydata/test/test_cli.py b/src/allmydata/test/test_cli.py index 4fa2e041..fb3edb05 100644 --- a/src/allmydata/test/test_cli.py +++ b/src/allmydata/test/test_cli.py @@ -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 -- 2.45.2