Dear Maintainer,

After adding:

 override_dh_auto_test:
       http_proxy='' dh_auto_test

in debian/rules to allow internal server to work during tests, new test
starting fail:

-------

======================================================================
FAIL: test_invalid (test.test_sendfile.TestSendFile.test_invalid)
SendFile: Invalid requests
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/build/python-bottle-0.12.23/test/test_sendfile.py", line 56, in 
test_invalid
    self.assertEqual(403, static_file(fn, root='/').status_code)
AssertionError: 403 != 200

----------------------------------------------------------------------
Ran 333 tests in 4.737s

FAILED (failures=1, skipped=1)
ERROR: InvocationError for command 
/root/build/python-bottle-0.12.23/.tox/py311/bin/python -m unittest discover 
(exited with code 1)

---------

After removing:

       try:
           fp, fn = tempfile.mkstemp()
           os.chmod(fn, 0)
           self.assertEqual(403, static_file(fn, root='/').status_code)
       finally:
           os.close(fp)
           os.unlink(fn)

in test/test_sendfile.py, all tests pass.
Please note that aforementioned lines was removed upstream in master
branch but I cannot identify the relative commit (this happened sometime
between 2016 and 2018).
Hope this helps.

Kind Regards

Reply via email to