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_multi_socket_action failed #837

Open
zhuofeng6 opened this issue Apr 12, 2024 · 0 comments
Open

test_multi_socket_action failed #837

zhuofeng6 opened this issue Apr 12, 2024 · 0 comments

Comments

@zhuofeng6
Copy link

Prior to creating an issue, please review the troubleshooting documentation:
http://pycurl.io/docs/dev/troubleshooting.html

What did you try to do?

run test cases

What happened?

test_multi_socket_action failed

tests/write_test.py::WriteTest::test_writeheader_and_writedata_real_file PASSED [ 98%]
tests/write_test.py::WriteTest::test_writeheader_not_file_like PASSED    [ 98%]
tests/write_to_stringio_test.py::WriteToStringioTest::test_write_to_bytesio PASSED [ 98%]
tests/write_to_stringio_test.py::WriteToStringioTest::test_write_to_stringio PASSED [ 99%]
tests/xferinfo_cb_test.py::XferinfoCbTest::test_sockoptfunction_exception PASSED [ 99%]
tests/xferinfo_cb_test.py::XferinfoCbTest::test_sockoptfunction_fail PASSED [ 99%]
tests/xferinfo_cb_test.py::XferinfoCbTest::test_xferinfo_cb PASSED       [100%]

=================================== FAILURES ===================================
__________________ MultiCallbackTest.test_multi_socket_action __________________

self = <tests.multi_callback_test.MultiCallbackTest testMethod=test_multi_socket_action>

    @pytest.mark.xfail(sys.platform == 'darwin', reason='https://github.com/pycurl/pycurl/issues/729')
    def test_multi_socket_action(self):
        self.multi.add_handle(self.easy)
        self.timer_result = None
        self.socket_result = None
        self.multi.socket_action(pycurl.SOCKET_TIMEOUT, 0)
        assert self.socket_result is not None
>       assert self.timer_result is not None
E       assert None is not None
E        +  where None = <tests.multi_callback_test.MultiCallbackTest testMethod=test_multi_socket_action>.timer_result

tests/multi_callback_test.py:62: AssertionError

What did you expect to happen?

test pass

What is the PycURL version?

PycURL : 7.45.3
curl: 8.4.0

What is your Python version?

3.11

What is your operating system and its version?

linux
openeuler-24.03

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

1 participant