Message280992
I am the current maintainer of WebOb, and noticed that on Python 3.6 and 3.7 I noticed that a test started failing.
Granted, the test is checking the size of the file created and it is not the brightest idea in a test, but it's been stable since Python 2.5...
https://travis-ci.org/Pylons/webob/jobs/176505096#L224
shows the failure.
_________________________ test_response_file_body_tell _________________________
def test_response_file_body_tell():
import zipfile
from webob.response import ResponseBodyFile
rbo = ResponseBodyFile(Response())
assert rbo.tell() == 0
writer = zipfile.ZipFile(rbo, 'w')
writer.writestr('zinfo_or_arcname', b'foo')
writer.close()
> assert rbo.tell() == 133
E assert 145 == 133
E + where 145 = <bound method ResponseBodyFile.tell of <body_file for <Response at 0x7fa6291f9eb8 200 OK>>>()
E + where <bound method ResponseBodyFile.tell of <body_file for <Response at 0x7fa6291f9eb8 200 OK>>> = <body_file for <Response at 0x7fa6291f9eb8 200 OK>>.tell
tests/test_response.py:608: AssertionError
I am not sure that this is necessarily a bug, but it would be good to know why files are no longer generated the same way. |
|
Date |
User |
Action |
Args |
2016-11-16 21:16:06 | X-Istence | set | recipients:
+ X-Istence |
2016-11-16 21:16:06 | X-Istence | set | messageid: <1479330966.86.0.764348227568.issue28719@psf.upfronthosting.co.za> |
2016-11-16 21:16:06 | X-Istence | link | issue28719 messages |
2016-11-16 21:16:06 | X-Istence | create | |
|