mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #80] [MERGED] [python] prepend build/lib folder to PYTHONPATH before running tests #679
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/80
Author: @anthrotype
Created: 4/22/2015
Status: ✅ Merged
Merged: 4/23/2015
Merged by: @szabadka
Base:
master← Head:test_brotli_py📝 Commits (2)
906f4f5[python] prepend build/lib folder to PYTHONPATH before running testscdde52e[python] refactored tests and import shared utilities from module📊 Changes
4 files changed (+52 additions, -29 deletions)
View changed files
📝
.gitignore(+3 -1)📝
python/tests/compatibility_test.py(+5 -13)📝
python/tests/roundtrip_test.py(+8 -15)➕
python/tests/test_utils.py(+36 -0)📄 Description
this allows you to run
python setup.py testwithout first having to install the extension.It assumes that the extension has was built in the default build base directory, i.e.
build/lib.{platform}-{version[0].version[1]}.I prepend the lib's path to the PYTHONPATH environment variable, and passes the latter to the subprocess running the tests.
Let me know if that was what you had in mind.
Cheers,
Cosimo
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.