Modified test added in 3afb5916b2
so it doesn't fail on Windows.
Refs #18091.
This commit is contained in:
parent
c4fdd859ec
commit
12ca312e1b
|
@ -1692,9 +1692,10 @@ class StartProject(LiveServerTestCase, AdminScriptTestCase):
|
||||||
self.assertNoOutput(err)
|
self.assertNoOutput(err)
|
||||||
self.assertTrue(os.path.isdir(testproject_dir))
|
self.assertTrue(os.path.isdir(testproject_dir))
|
||||||
path = os.path.join(testproject_dir, 'ticket-18091-non-ascii-template.txt')
|
path = os.path.join(testproject_dir, 'ticket-18091-non-ascii-template.txt')
|
||||||
with codecs.open(path, 'r', 'utf-8') as f:
|
with codecs.open(path, 'r', encoding='utf-8') as f:
|
||||||
self.assertEqual(f.read(),
|
self.assertEqual(f.read().splitlines(False), [
|
||||||
'Some non-ASCII text for testing ticket #18091:\nüäö €\n')
|
'Some non-ASCII text for testing ticket #18091:',
|
||||||
|
'üäö €'])
|
||||||
|
|
||||||
|
|
||||||
class DiffSettings(AdminScriptTestCase):
|
class DiffSettings(AdminScriptTestCase):
|
||||||
|
|
Loading…
Reference in New Issue