test_client fails on cygwin #143

Closed
opened 2007-09-22 16:44:45 +00:00 by zooko · 4 comments
zooko commented 2007-09-22 16:44:45 +00:00
Owner

This happens on our cygwin buildslave as well as on my cygwin on Parallels v2 on my Macbook Pro:

===============================================================================
[FAIL]: allmydata.test.test_runner.RunNode.test_client

Traceback (most recent call last):
  File "/cygdrive/c/playground/allmydata/tahoe/src/allmydata/test/test_runner.py", line 167, in _started
    self.failUnlessEqual(rc, 0, errstr)
twisted.trial.unittest.FailTest: rc=1, OUT: '', ERR: 'never saw process go away
not restarting
'
This happens on our cygwin buildslave as well as on my cygwin on Parallels v2 on my Macbook Pro: ``` =============================================================================== [FAIL]: allmydata.test.test_runner.RunNode.test_client Traceback (most recent call last): File "/cygdrive/c/playground/allmydata/tahoe/src/allmydata/test/test_runner.py", line 167, in _started self.failUnlessEqual(rc, 0, errstr) twisted.trial.unittest.FailTest: rc=1, OUT: '', ERR: 'never saw process go away not restarting ' ```
tahoe-lafs added the
unknown
major
defect
0.5.1
labels 2007-09-22 16:44:45 +00:00
tahoe-lafs added this to the 0.6.0 milestone 2007-09-22 16:44:45 +00:00
zooko commented 2007-09-22 22:46:06 +00:00
Author
Owner

Okay, SIGINT doesn't cause the Python interpreter to quit under cygwin, but it does print "Keyboard Interrupt" to stdout when it receives that signal. (Could have something to do with #136 ?)

How about if do_stop() uses SIGTERM?

Okay, SIGINT doesn't cause the Python interpreter to quit under cygwin, but it does print "Keyboard Interrupt" to stdout when it receives that signal. (Could have something to do with #136 ?) How about if do_stop() uses SIGTERM?
zooko commented 2007-09-22 22:49:47 +00:00
Author
Owner

No, this can't have anything to do with #136 (i.e. with Twisted ticket #733) because I did this with a plain cygwin python interpreter that hadn't imported Twisted or anything else.

No, this can't have anything to do with #136 (i.e. with [Twisted ticket #733](http://twistedmatrix.com/trac/ticket/733)) because I did this with a plain cygwin python interpreter that hadn't imported Twisted or anything else.
zooko commented 2007-09-22 23:05:30 +00:00
Author
Owner

(http://twistedmatrix.com/pipermail/twisted-python/2006-May/013115.html)

excerpt from that page:

Just to add more informations:
when killing a normal Python process with TERM, the Interpreter
terminates without calling the functions registered with atexit.

Now this is strange because the MSDN says that, by default, SIGTERM is
ignored and the Python documentation says that only an handler for
SIGINT is installed.
(http://twistedmatrix.com/pipermail/twisted-python/2006-May/013115.html) excerpt from that page: ``` Just to add more informations: when killing a normal Python process with TERM, the Interpreter terminates without calling the functions registered with atexit. Now this is strange because the MSDN says that, by default, SIGTERM is ignored and the Python documentation says that only an handler for SIGINT is installed. ```
zooko commented 2007-09-23 15:36:34 +00:00
Author
Owner

fixed by changeset:93efd2902ee4626b

fixed by changeset:93efd2902ee4626b
tahoe-lafs added the
fixed
label 2007-09-23 15:36:34 +00:00
zooko closed this issue 2007-09-23 15:36:34 +00:00
tahoe-lafs added
code
and removed
unknown
labels 2007-09-28 02:26:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#143
No description provided.