Browse files

[1.5.x] Modified a staticfiles test to use a unicode character that h…

…as just one single representation. The previously used character (ş) has two different representations (u'\u015f' and u's\u0327'), which caused spurious failures when the tests were run across multiple platforms (e.g. on a Linux VM hosted on a Mac).
  • Loading branch information...
1 parent 1220f22 commit 699a67480ac3b8046f450b293422b9534a4770a1 @jphalip jphalip committed Nov 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/regressiontests/staticfiles_tests/
@@ -58,9 +58,9 @@ def setUp(self):
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, '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's
# package data handling.
self._hidden_filepath = os.path.join(testfiles_path, '.hidden')
@@ -177,7 +177,7 @@ def test_nonascii_filenames(self):
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):

0 comments on commit 699a674

Please sign in to comment.