`StartProject.test_simple_project` and `test_simple_project_different_directory` fail under Windows
These tests expect to find the string "File exists"
on stderr, but the actual error message is OS-dependent.
======================================================================
FAIL: test_simple_project (regressiontests.admin_scripts.tests.StartProject)
Make sure the startproject management command creates a project
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Documents and Settings\Administrator\Desktop\django-trunk\tests\regressiontests\admin_scripts\tests.py", line
1387, in test_simple_project
self.assertOutput(err, "File exists")
File "C:\Documents and Settings\Administrator\Desktop\django-trunk\tests\regressiontests\admin_scripts\tests.py", line
175, in assertOutput
self.assertTrue(msg in stream, "'%s' does not match actual output text '%s'" % (msg, stream))
AssertionError: 'File exists' does not match actual output text 'Error: [Error 183] Cannot create a file when that file
already exists: 'C:\\Documents and Settings\\Administrator\\Desktop\\django-trunk\\tests\\regressiontests\\testproject'
'
======================================================================
FAIL: test_simple_project_different_directory (regressiontests.admin_scripts.tests.StartProject)
Make sure the startproject management command creates a project in a specific directory
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Documents and Settings\Administrator\Desktop\django-trunk\tests\regressiontests\admin_scripts\tests.py", line
1403, in test_simple_project_different_directory
self.assertOutput(err, "File exists")
File "C:\Documents and Settings\Administrator\Desktop\django-trunk\tests\regressiontests\admin_scripts\tests.py", line
175, in assertOutput
self.assertTrue(msg in stream, "'%s' does not match actual output text '%s'" % (msg, stream))
AssertionError: 'File exists' does not match actual output text 'Error: [Error 183] Cannot create a file when that file
already exists: 'othertestproject\\testproject'
'
Change History
(4)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Jannis Leidel
|
Version: |
SVN → 1.4-alpha-1
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
In [17377]: