Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work in Windows #1

Closed
mohanraj-r opened this issue Jul 15, 2013 · 3 comments
Closed

Doesn't work in Windows #1

mohanraj-r opened this issue Jul 15, 2013 · 3 comments

Comments

@mohanraj-r
Copy link

Thank you for this work.

Is this expected to work in Windows ?
I got the following error

----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "c:\Python27\lib\site-packages\timeout_decorator\timeout_decorator.py", line 32, in new_f
    old = signal.signal(signal.SIGALRM, handler)
AttributeError: 'module' object has no attribute 'SIGALRM'

I guess signal module in Windows doesn't have the SIGALRM

It would be helpful if you can edit the Readme and/or put a os check in the code.

Thanks,

@pnpnpn
Copy link
Owner

pnpnpn commented Jul 16, 2013

I never tested it on Windows. I guess it won't work there. Do you know if there is a work around? If so, I can add you as a collaborator.

Thanks.

@mohanraj-r
Copy link
Author

I don't have a workaround for now. And from the brief time I spent searching for solutions, my impression is that it is not possible or easy. If I come upon a workaround, I will contact you.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants