classification
Title: test_unittest fails on Windows
Type: Stage:
Components: Tests, Windows Versions: Python 2.7
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: michael.foord Nosy List: abbeyj, michael.foord
Priority: normal Keywords: patch

Created on 2009-06-05 05:57 by abbeyj, last changed 2009-06-05 14:15 by michael.foord. This issue is now closed.

Files
File name Uploaded Description Edit
test_unittest_on_windows.patch abbeyj, 2009-06-05 05:57
Messages (2)
msg88923 - (view) Author: James Abbatiello (abbeyj) Date: 2009-06-05 05:57
test_unittest fails on Windows with:
======================================================================
FAIL: test_find_tests_with_package (test.test_unittest.TestDiscovery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Projects\python-trunk\lib\test\test_unittest.py", line 3540,
in test_find_tests_with_package
    self.assertEqual(suite, ['load_tests', '/foo/test_directory2 module
tests'])

AssertionError: Lists differ: ['load_tests', '/foo\\test_dir... !=
['load_tests', '/foo/test_dire...

First differing element 1:
/foo\test_directory2 module tests
/foo/test_directory2 module tests

- ['load_tests', '/foo\\test_directory2 module tests']
?                     ^^

+ ['load_tests', '/foo/test_directory2 module tests']
?                     ^


----------------------------------------------------------------------


Patch attached.
msg88947 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2009-06-05 14:15
Thanks - I should have tested on Windows first. Tests now pass on
Windows and Mac OS X. Committed revision 73247.
History
Date User Action Args
2009-06-05 14:15:29michael.foordsetstatus: open -> closed
resolution: accepted
messages: + msg88947
2009-06-05 08:26:00pitrousetassignee: michael.foord

nosy: + michael.foord
2009-06-05 05:58:01abbeyjcreate