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

test_timeout_check_call using sleep fails on WSL #407

Closed
balarsen opened this issue Aug 21, 2020 · 2 comments
Closed

test_timeout_check_call using sleep fails on WSL #407

balarsen opened this issue Aug 21, 2020 · 2 comments

Comments

@balarsen
Copy link
Contributor

The test uses sleep to have a timeout. Sleep is broken on WSL and some Ubuntu per microsoft/WSL#4898

Maybe we just try...except or something if sleep works.

Minimal example to reproduce issue:

(python3) :~/git/spacepy/tests$ python test_toolbox.py test_timeout_check_call -v
This unreleased version of SpacePy is not supported by the SpacePy team.
test_timeout_check_call (unittest.loader._FailedTest) ... ERROR

======================================================================
ERROR: test_timeout_check_call (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: module '__main__' has no attribute 'test_timeout_check_call'

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)
Linux-4.4.0-18362-Microsoft-x86_64-with-debian-bullseye-sid
sys.version_info(major=3, minor=7, micro=7, releaselevel='final', serial=0)
numpy=1.19.1
scipy=1.5.2
matplotlib=3.2.2

Version of SpacePy

spacepy master f56b6d6

@balarsen
Copy link
Contributor Author

(python3) :~/git/spacepy/tests$ sleep 2
sleep: cannot read realtime clock: Invalid argument

@jtniehof
Copy link
Member

Duplicate of #344

Your example doesn't show this problem, but it's clear in the other.

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

No branches or pull requests

2 participants