Opened 13 years ago
Closed 13 years ago
#17468 closed Bug (fixed)
`StartProject.test_simple_project` and `test_simple_project_different_directory` fail under Windows
Description ¶
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)
comment:1 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 13 years ago
Owner: | changed from | to
---|
comment:3 by , 13 years ago
Version: | SVN → 1.4-alpha-1 |
---|
comment:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In [17377]: