From 699a67480ac3b8046f450b293422b9534a4770a1 Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Wed, 21 Nov 2012 09:52:09 +0100 Subject: [PATCH] =?UTF-8?q?[1.5.x]=20Modified=20a=20staticfiles=20test=20t?= =?UTF-8?q?o=20use=20a=20unicode=20character=20that=20has=20just=20one=20s?= =?UTF-8?q?ingle=20representation.=20The=20previously=20used=20character?= =?UTF-8?q?=20(=C5=9F)=20has=20two=20different=20representations=20(u'\u01?= =?UTF-8?q?5f'=20and=20u's\u0327'),=20which=20caused=20spurious=20failures?= =?UTF-8?q?=20when=20the=20tests=20were=20run=20across=20multiple=20platfo?= =?UTF-8?q?rms=20(e.g.=20on=20a=20Linux=20VM=20hosted=20on=20a=20Mac).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/regressiontests/staticfiles_tests/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/regressiontests/staticfiles_tests/tests.py b/tests/regressiontests/staticfiles_tests/tests.py index 69e30613a8..0c8e7db17d 100644 --- a/tests/regressiontests/staticfiles_tests/tests.py +++ b/tests/regressiontests/staticfiles_tests/tests.py @@ -58,9 +58,9 @@ class BaseStaticFilesTestCase(object): testfiles_path = os.path.join(TEST_ROOT, 'apps', 'test', 'static', 'test') # To make sure SVN doesn't hangs itself with the non-ASCII characters # during checkout, we actually create one file dynamically. - self._nonascii_filepath = os.path.join(testfiles_path, 'fi\u015fier.txt') + self._nonascii_filepath = os.path.join(testfiles_path, '\u2297.txt') with codecs.open(self._nonascii_filepath, 'w', 'utf-8') as f: - f.write("fi\u015fier in the app dir") + f.write("\u2297 in the app dir") # And also create the stupid hidden file to dwarf the setup.py's # package data handling. self._hidden_filepath = os.path.join(testfiles_path, '.hidden') @@ -177,7 +177,7 @@ class TestDefaults(object): """ Can find a file with non-ASCII character in an app static/ directory. """ - self.assertFileContains('test/fişier.txt', 'fişier in the app dir') + self.assertFileContains('test/⊗.txt', '⊗ in the app dir') def test_camelcase_filenames(self): """