[Python-modules-team] Bug#982210: flask-limiter: autopkgtest failure

Adrian Bunk bunk at debian.org
Sun Feb 7 13:12:22 GMT 2021


Source: flask-limiter
Version: 1.0.1-2
Severity: serious

https://ci.debian.net/data/autopkgtest/unstable/amd64/f/flask-limiter/10177110/log.gz

...
======================================================================
FAIL: test_no_swallow_error (tests.test_flask_ext.ErrorHandlingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/autopkgtest-lxc.84sttsu8/downtmp/autopkgtest_tmp/tests/test_flask_ext.py", line 169, in test_no_swallow_error
    self.assertEqual("underlying", cli.get("/").data.decode())
AssertionError: 'underlying' != '500 Internal Server Error: The server enc[136 chars]ion.'
- underlying
+ 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

-------------------- >> begin captured logging << --------------------
tests: ERROR: Exception on / [GET]
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1948, in full_dispatch_request
    rv = self.preprocess_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2242, in preprocess_request
    rv = func()
  File "/usr/lib/python3/dist-packages/flask_limiter/extension.py", line 479, in __check_request_limit
    six.reraise(*sys.exc_info())
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/flask_limiter/extension.py", line 462, in __check_request_limit
    self.__evaluate_limits(endpoint, all_limits)
  File "/usr/lib/python3/dist-packages/flask_limiter/extension.py", line 336, in __evaluate_limits
    if not self.limiter.hit(lim.limit, *args):
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1100, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1104, in _mock_call
    return _mock_self._execute_mock_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1167, in _execute_mock_call
    result = effect(*args, **kwargs)
  File "/tmp/autopkgtest-lxc.84sttsu8/downtmp/autopkgtest_tmp/tests/test_flask_ext.py", line 165, in raiser
    raise Exception("underlying")
Exception: underlying
tests: ERROR: Exception on / [GET]
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1948, in full_dispatch_request
    rv = self.preprocess_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 2242, in preprocess_request
    rv = func()
  File "/usr/lib/python3/dist-packages/flask_limiter/extension.py", line 479, in __check_request_limit
    six.reraise(*sys.exc_info())
  File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/flask_limiter/extension.py", line 462, in __check_request_limit
    self.__evaluate_limits(endpoint, all_limits)
  File "/usr/lib/python3/dist-packages/flask_limiter/extension.py", line 336, in __evaluate_limits
    if not self.limiter.hit(lim.limit, *args):
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1100, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1104, in _mock_call
    return _mock_self._execute_mock_call(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1167, in _execute_mock_call
    result = effect(*args, **kwargs)
  File "/tmp/autopkgtest-lxc.84sttsu8/downtmp/autopkgtest_tmp/tests/test_flask_ext.py", line 165, in raiser
    raise Exception("underlying")
Exception: underlying
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 59 tests in 3.415s

FAILED (failures=1)
autopkgtest [13:26:58]: test command2: -----------------------]
autopkgtest [13:26:58]: test command2:  - - - - - - - - - - results - - - - - - - - - -
command2             FAIL non-zero exit status 1
autopkgtest [13:26:58]: @@@@@@@@@@@@@@@@@@@@ summary
command1             PASS
command2             FAIL non-zero exit status 1



More information about the Python-modules-team mailing list