nose-devs/nose — Issue #166: Tests fail to run on Windows
Author: jpellerin
Created: 2011-12-14 16:02:28+00:00
State: closed

selftest.py currently fails on Windows. See attached patch which addresses
3 problems:
1) Tests against the multiprocess plugin fail because the multiprocess
plugin refuses to run on Windows
2) Some doctests assume the '/' character is the path separator
3) There's a race condition in twisted testing. This is actually not a
Windows-specific problem. At the end of test_twisted.py,
test_timeout_expired sets a delayed call using callLater but doesn't wait
until it occurs. Then stop_reactor() is called which shuts down the main
loop. The call remains queued inside the reactor. Then
test_twisted_testcase.py runs. After each test the cleanup handler in
twisted.trial.unittest.TestCase checks to see if the reactor is in an
unclean state and errors out the test if so. If this check runs before the
delayed call has a chance to expire then the test will fail with a "reactor
was unclean" error. I've added code to stop_reactor() to cancel all
pending calls.

Google Code Info:
Issue #: 278
Author: abbeyj
Created On: 2009-07-10T02:23:05.000Z
Closed On: 2009-09-27T15:05:14.000Z