Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Modified test added in 3afb591 so it doesn't fail on Windows.

Refs #18091.
  • Loading branch information...
commit 12ca312e1bc2cab614aed854b4c38dd86fefbdda 1 parent c4fdd85
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
@@ -1692,9 +1692,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.