forked from premiere/premiere-libtorrent
we're not always supposed to gzip test_file in web_server.py (unit test)
This commit is contained in:
parent
8bf283c7fe
commit
ad635c7081
|
@ -7,11 +7,14 @@ import gzip
|
|||
|
||||
chunked_encoding = False
|
||||
|
||||
fin = open('test_file', 'rb')
|
||||
f = gzip.open('test_file.gz', 'wb')
|
||||
f.writelines(fin)
|
||||
f.close()
|
||||
fin.close()
|
||||
try:
|
||||
fin = open('test_file', 'rb')
|
||||
f = gzip.open('test_file.gz', 'wb')
|
||||
f.writelines(fin)
|
||||
f.close()
|
||||
fin.close()
|
||||
except:
|
||||
pass
|
||||
|
||||
class http_server_with_timeout(BaseHTTPServer.HTTPServer):
|
||||
allow_reuse_address = True
|
||||
|
|
Loading…
Reference in New Issue