8000 webob-1.8.9 fails one test with Python 3.14.0b1 (test_interrupted_request) · Issue #479 · Pylons/webob · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

webob-1.8.9 fails one test with Python 3.14.0b1 (test_interrupted_request) #479

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

Open
thesamesam opened this issue May 12, 2025 · 1 comment

Comments

@thesamesam
Copy link
thesamesam commented May 12, 2025

webob-1.8.9 seems to fail one test for me with Python 3.14.0b1:

======================================================================================== FAILURES ========================================================================================
________________________________________________________________________________ test_interrupted_request ________________________________________________________________________________

req = <Request at 0x788ceeef06e0 POST http://localhost:57574/readline>

    def _req_int_readline(req):
        try:
>           assert req.body_file.readline() == b'a=b\n'

req        = <Request at 0x788ceeef06e0 POST http://localhost:57574/readline>

tests/test_in_wsgiref.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <LimitedLengthFile(<_io.BufferedReader name=-1>, maxlen=100000)>, buff = <memory at 0x788ceeef4340>

    def readinto(self, buff):
        if not self.remaining:
            return 0
        sz0 = min(len(buff), self.remaining)
        data = self.file.read(sz0)
        sz = len(data)
        self.remaining -= sz
        if sz < sz0 and self.remaining:
>           raise DisconnectionError(
                "The client disconnected while sending the body "
                "(%d more bytes were expected)" % (self.remaining,)
            )
E           webob.request.DisconnectionError: The client disconnected while sending the body (89994 more bytes were expected)

buff       = <memory at 0x788ceeef4340>
data       = (b'a=b\nz=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
 b'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
 b'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
 b'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
 b'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
 b'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
[...]
XFAIL tests/test_response.py::test_response_file_body_tell - Python 3.6 and up requires that rbo is seekable.
FAILED tests/test_in_wsgiref.py::test_interrupted_request - AssertionError: False disconnect alert
=========================================================== 1 failed, 2379 passed, 9 skipped, 1 xfailed, 48 warnings in 7.30s ============================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
 * ERROR: dev-python/webob-1.8.9::gentoo failed (test phase):
 *   pytest failed with python3.14
@ondrejj
Copy link
ondrejj commented May 20, 2025

There are also some deprecation warnings about datetime.utcnow() usage and licence classification, ... See fedora build logs at:

https://download.copr.fedorainfracloud.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09062512-python-webob/builder-live.log.gz

Examples:

  /usr/lib/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: MIT License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  /usr/lib/python3.14/site-packages/setuptools/_distutils/cmd.py:135: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated
  !!

          ********************************************************************************
          With Python 2.7 end-of-life, support for building universal wheels
          (i.e., wheels that support both Python 2 and Python 3)
          is being obviated.
          Please discontinue using this option, or if you still need it,
          file an issue with pypa/setuptools describing your use case.

          By 2025-Aug-30, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.
          ********************************************************************************


tests/test_in_wsgiref.py::test_interrupted_request
  /builddir/build/BUILD/python-webob-1.8.9-build/webob-1.8.9/tests/conftest.py:53: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
    worker.setDaemon(True)

tests/test_cookies.py: 6 warnings
tests/test_response.py: 5 warnings
  /builddir/build/BUILD/python-webob-1.8.9-build/BUILDROOT/usr/lib/python3.14/site-packages/webob/cookies.py:238: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    v = datetime.utcnow() + v

tests/test_request.py::TestRequest_functional::test_request_put
  /builddir/build/BUILD/python-webob-1.8.9-build/BUILDROOT/usr/lib/python3.14/site-packages/webob/acceptparse.py:1262: DeprecationWarning: The behavior of .__contains__ for the Accept classes is currently being maintained for backward compatibility, but it will change in the future to better conform to the RFC.
    warnings.warn(

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

2 participants
0