Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.6.x] Modified test added in 3afb591 so it doesn't fail on Windows.

Refs #18091.

12ca312 from master.
  • Loading branch information...
commit c4468e0619ef45cae7914b2ebf8357951342dd72 1 parent 5d72ce0
Ramiro Morales authored ramiro committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/admin_scripts/tests.py
View
7 tests/admin_scripts/tests.py
@@ -1679,9 +1679,10 @@ def test_custom_project_template_with_non_ascii_templates(self):
self.assertNoOutput(err)
self.assertTrue(os.path.isdir(testproject_dir))
path = os.path.join(testproject_dir, 'ticket-18091-non-ascii-template.txt')
- with codecs.open(path, 'r', 'utf-8') as f:
- self.assertEqual(f.read(),
- 'Some non-ASCII text for testing ticket #18091:\nüäö €\n')
+ with codecs.open(path, 'r', encoding='utf-8') as f:
+ self.assertEqual(f.read().splitlines(False), [
+ 'Some non-ASCII text for testing ticket #18091:',
+ 'üäö €'])
class DiffSettings(AdminScriptTestCase):
Please sign in to comment.
Something went wrong with that request. Please try again.