mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #38] [MERGED] add Python port of bro utility and scripts to test Brotli extension #619
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/google/brotli/pull/38
Author: @anthrotype
Created: 3/16/2015
Status: ✅ Merged
Merged: 3/16/2015
Merged by: @szabadka
Base:
master← Head:py_tests📝 Commits (1)
b33e10eadd Python port of bro utility and scripts to test Brotli extension📊 Changes
3 files changed (+234 additions, -0 deletions)
View changed files
➕
python/bro.py(+131 -0)➕
python/tests/compatibility_test.py(+55 -0)➕
python/tests/roundtrip_test.py(+48 -0)📄 Description
The
bro.pyaccepts the same options as thebrocommand-line utility, and supports piping to/from the standard streams.The test scripts are simple Python ports of
compatibility_test.shandroundtrip_test.shshell script.I made that to be able to test the Brotli Python extension against the same data used by the test shell scripts.
The scripts are especially useful on Windows, which doesn't include the bash shell, and where the
broutility fails to compile using the native MSVC compiler.Please note that
bro.pydepends on @khaledhosny's #36 patch, since it just callsbrotli.decompress(string)and expects the decompression buffer to be dynamically allocated.Thank you.
Cosimo
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.