test_cli.py: use str objects instead of unicode ones

This will hopefully fix failing tests with LC_ALL=C
This commit is contained in:
francois 2008-11-14 07:41:37 -07:00
parent 5a60086dbc
commit 32b5bc6330

View 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