0.4.27-7-g05fde96.further-update-readme-for-test-running-changes.patch 999 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Subject: Further update README for test running changes
  2. Origin: upstream, commit 0.4.27-7-g05fde96 <https://github.com/ahupp/python-magic/commit/0.4.27-7-g05fde96>
  3. Author: Adam Hupp <adam@hupp.org>
  4. Date: Mon Oct 24 08:19:55 2022 -0700
  5. --- a/README.md
  6. +++ b/README.md
  7. @@ -101,22 +101,23 @@
  8. ## Running the tests
  9. -To run the tests across a variety of linux distributions (depends on Docker):
  10. +We use the `tox` test runner which can be installed with `python -m pip install tox`.
  11. +
  12. +To run tests locally across all available python versions:
  13. ```
  14. -./test_docker.sh
  15. +python -m tox
  16. ```
  17. -To run tests locally across all available python versions:
  18. +Or to run just against a single version:
  19. ```
  20. -./test/run.py
  21. +python -m tox py
  22. ```
  23. -
  24. -To run against a specific python version:
  25. +To run the tests across a variety of linux distributions (depends on Docker):
  26. ```
  27. -LC_ALL=en_US.UTF-8 python3 test/python_magic_test.py
  28. +./test/run_all_docker_test.sh
  29. ```
  30. ## libmagic python API compatibility