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

Tests failing on ppc64le #477

Open
johanneskastl opened this issue Mar 22, 2023 · 2 comments
Open

Tests failing on ppc64le #477

johanneskastl opened this issue Mar 22, 2023 · 2 comments
Labels
bug Packaging Upstream package support

Comments

@johanneskastl
Copy link

I am packaging libtmux for openSUSE. Unfortunately the tests fail on ppc64le. Could you have a look if this can be fixed?

[   82s] =================================== FAILURES ===================================
[   82s] ___________________ test_function_times_out_no_raise_assert ____________________
[   82s] 
[   82s]     def test_function_times_out_no_raise_assert() -> None:
[   82s]         ini = time()
[   82s]     
[   82s]         def never_true() -> bool:
[   82s]             return False
[   82s]     
[   82s]         assert not retry_until(never_true, 1, raises=False)
[   82s]     
[   82s]         end = time()
[   82s]     
[   82s] >       assert abs((end - ini) - 1.0) < 0.01
[   82s] E       assert 0.012233734130859375 < 0.01
[   82s] E        +  where 0.012233734130859375 = abs(((1679485925.7025032 - 1679485924.6902695) - 1.0))
[   82s] 
[   82s] tests/test_test.py:67: AssertionError
[   82s] _______________________ test_function_times_out_no_rise ________________________
[   82s] 
[   82s]     def test_function_times_out_no_rise() -> None:
[   82s]         ini = time()
[   82s]     
[   82s]         def never_true() -> bool:
[   82s]             return False
[   82s]     
[   82s]         retry_until(never_true, 1, raises=False)
[   82s]     
[   82s]         end = time()
[   82s]     
[   82s] >       assert abs((end - ini) - 1.0) < 0.01
[   82s] E       assert 0.013442516326904297 < 0.01
[   82s] E        +  where 0.013442516326904297 = abs(((1679485936.5801134 - 1679485935.566671) - 1.0))
[   82s] 
[   82s] tests/legacy_api/test_test.py:54: AssertionError
@tony tony added bug Packaging Upstream package support labels Mar 22, 2023
@tony
Copy link
Member

tony commented Mar 22, 2023

Thank you, I will take a closer look this weekend!

Workaround in the mean time: Is it possible you could add a @pytest.mark.skip decorator on top of the functions?

@johanneskastl
Copy link
Author

Thank you, I will take a closer look this weekend!

Thank you, that would be great.

Workaround in the mean time: Is it possible you could add a @pytest.mark.skip decorator on top of the functions?

I disabled the check for now in the pytest invocation, as I cannot easily patch the test files.

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

No branches or pull requests

2 participants