0.4.27-33-g4b776d7.rename-no-json-test-to-avoid-duplicate-function-definitions.patch 686 B

123456789101112131415161718
  1. Subject: Rename no_json test to avoid duplicate function definitions
  2. Origin: upstream, commit 0.4.27-33-g4b776d7 <https://github.com/ahupp/python-magic/commit/0.4.27-33-g4b776d7>
  3. Author: Adam Hupp <adam@hupp.org>
  4. Date: Sun May 26 01:11:45 2024 -0700
  5. Forwarded: not-needed
  6. --- a/test/python_magic_test.py
  7. +++ b/test/python_magic_test.py
  8. @@ -202,7 +202,8 @@
  9. buf_equals_file=True,
  10. )
  11. - def test_descriptions_no_json(self):
  12. + def test_descriptions_no_json_unchanged(self):
  13. + # verify non-json results are unchanged
  14. m = magic.Magic(check_json=False)
  15. os.environ["TZ"] = "UTC" # To get last modified date of test.gz in UTC
  16. try: